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

This commit is contained in:
Joe Bowser 2013-05-24 11:29:28 -07:00
parent 38b769a2c5
commit aa81966e0b

View File

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