mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 17:32:51 +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:
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…
Reference in New Issue
Block a user