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