You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2013/06/11 02:15:40 UTC

[25/32] android commit: Revert "CB-3496: Fixed streaming audio, this is pretty important for mobile spec"

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/43172cf5
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/43172cf5
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/43172cf5

Branch: refs/heads/3.0.0
Commit: 43172cf53035e91125606fbb0046059c05c5a227
Parents: e518eac
Author: Andrew Grieve <ag...@chromium.org>
Authored: Mon May 27 22:20:01 2013 -0400
Committer: Joe Bowser <bo...@apache.org>
Committed: Thu Jun 6 14:06:54 2013 -0700

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


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/43172cf5/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();
     }
 
     /**