mirror of
https://github.com/apache/cordova-android.git
synced 2026-04-04 00:02:03 +08:00
Revert "CB-3496: Fixed streaming audio, this is pretty important for mobile spec"
This reverts commit aa81966e0b.
Going to revert all DataResource changes for on the 2.8.x branch.
This commit is contained in:
committed by
Joe Bowser
parent
e518eacbde
commit
43172cf530
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user