Updated Branches:
  refs/heads/2.8.x 6b5535e91 -> a044e88a1

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.


Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/338216be
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/338216be
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/338216be

Branch: refs/heads/2.8.x
Commit: 338216beca6a4609b93552d3d934c0272133d845
Parents: 6b5535e
Author: Andrew Grieve <[email protected]>
Authored: Mon May 27 22:20:01 2013 -0400
Committer: Andrew Grieve <[email protected]>
Committed: Mon May 27 22:20:01 2013 -0400

----------------------------------------------------------------------
 framework/src/org/apache/cordova/AudioHandler.java |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/338216be/framework/src/org/apache/cordova/AudioHandler.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/AudioHandler.java 
b/framework/src/org/apache/cordova/AudioHandler.java
index ef20306..20c3c4e 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();
     }
 
     /**

Reply via email to