Revert "CB-3496: Fixed streaming audio, this is pretty important for mobile spec"

This reverts commit aa81966e0b.

Going to revert all DataResource changes for on the 2.8.x branch.
This commit is contained in:
Andrew Grieve 2013-05-27 22:20:01 -04:00
parent 6b5535e91e
commit 338216beca

View File

@ -58,10 +58,7 @@ public class AudioHandler extends CordovaPlugin {
public String getFilePath(String url, String source){
DataResource dataResource = DataResource.initiateNewDataRequestForUri(url, this.webView.pluginManager, cordova, source);
if(dataResource.getUri().getScheme().equals("http") || dataResource.getUri().getScheme().equals("https"))
return dataResource.getUri().toString();
else
return dataResource.getRealFile().getPath();
return dataResource.getRealFile().getPath();
}
/**