diff --git a/framework/src/org/apache/cordova/AudioHandler.java b/framework/src/org/apache/cordova/AudioHandler.java index 20c3c4ef..ef203064 100644 --- a/framework/src/org/apache/cordova/AudioHandler.java +++ b/framework/src/org/apache/cordova/AudioHandler.java @@ -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(); } /**