mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
CB-3496: Fixed streaming audio, this is pretty important for mobile spec
This commit is contained in:
parent
38b769a2c5
commit
aa81966e0b
@ -58,7 +58,10 @@ public class AudioHandler extends CordovaPlugin {
|
||||
|
||||
public String getFilePath(String url, String source){
|
||||
DataResource dataResource = DataResource.initiateNewDataRequestForUri(url, this.webView.pluginManager, cordova, source);
|
||||
return dataResource.getRealFile().getPath();
|
||||
if(dataResource.getUri().getScheme().equals("http") || dataResource.getUri().getScheme().equals("https"))
|
||||
return dataResource.getUri().toString();
|
||||
else
|
||||
return dataResource.getRealFile().getPath();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user