mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-07 23:03:11 +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,9 +58,6 @@ public class AudioHandler extends CordovaPlugin {
|
|||||||
|
|
||||||
public String getFilePath(String url, String source){
|
public String getFilePath(String url, String source){
|
||||||
DataResource dataResource = DataResource.initiateNewDataRequestForUri(url, this.webView.pluginManager, cordova, 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