mirror of
https://github.com/apache/cordova-android.git
synced 2025-03-16 00:11:03 +08:00
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.
This commit is contained in:
parent
6b5535e91e
commit
338216beca
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user