GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2019-06-11T23:24:46.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | android, audio, externalstorage, video, webview |
Reporter | Jignesh Kasundra |
Assignee | Eric Merriman |
Created | 2018-05-23T06:47:01.000+0000 |
Updated | 2019-06-11T23:24:46.000+0000 |
[ERROR] : MediaResourceGetter: Invalid url: java.lang.RuntimeException: setDataSource failed: status = 0x80000000
[ERROR] : MediaPlayer: error (262, 0)
[ERROR] : MediaPlayer: Unable to create media player
================
The audio / video file from *external storage* not playing under webview.
Note: please check the attached code (app.js)
on my android deice I have copied both audio file into the directory where created index.html file is present
Make sure you have permissions granted before:
Hi Hans, I am facing this issue on android OS 4.4.2. device Yes the app have read-write permission. I am able to write the html file into external storage and also able to point (read) that page (index.html) into webview successfully. the page is displayed fine but on click the audio control the audio is not playing. and it display error on Applelerator studio logs window as I mentioned in description.
The error indicates an invalid URL then. Make sure you are passing the correct one to the webView. Support will be able to get further infos here.
yes, as the html file and audio file both present in *same directory(AudioFiles)* so for src simply filename should work but it's not working out. I have also tried nativePath as well but that is also not work out
here localPath >>> file:///storage/emulated/0/com.example.audiovideodemo/AudioFiles
hello, has anybody looked out this issue ? can you please help us to resolve this issue as soon as possible. it’s showstopper issue for us
Hello, Please provide a full reproducible sample project that we can use to test the issue on our end. If the issue is reproducible we will forward it for a fix. Thanks.
Hi, I have attached sample project and sound files please check it.
Hello, can you please take this bug on priority if possible. we have learning base app and we are using webview to render html content which also includes media content. as audio/video not working from external storage is showstopper issue for us. thanks.
Hello, can you please try to resolve this as possible as soon. the android webview html5 audio/video not working from external storage on any of the Android version the app have EXTERNAL READ-WRITE STORAGE PERMISSION. thanks.
hello, my issue is resolved. this is not SDK bug. please close the ticket thanks
Closing per reporter comments.