From 338216beca6a4609b93552d3d934c0272133d845 Mon Sep 17 00:00:00 2001 From: Andrew Grieve Date: Mon, 27 May 2013 22:20:01 -0400 Subject: [PATCH] Revert "CB-3496: Fixed streaming audio, this is pretty important for mobile spec" This reverts commit aa81966e0bf1460c6e40b9f5cc7290247cc84786. Going to revert all DataResource changes for on the 2.8.x branch. --- framework/src/org/apache/cordova/AudioHandler.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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(); } /**