Reputation: 129
I'm having difficulties getting HTML5 video to work with the Android webview.
Everything is already set up:
What does work:
Loading the video into the webview from an URL that's hosted on my internal network. It gets played properly.
What does not work:
Loading the video from Androids storage. results in the following: The video plays according to controls but all that is show is a black canvas with a tiny line of colored pixels.
No error messages get thrown in logcat either. I wonder if anyone has experienced this before.
Any help is gladly appreciated.
Upvotes: 0
Views: 172
Reputation: 129
Seems like Android doesn't like to play HTML video's straight from it's SDCard. What I did to fix it was to use busybox and run its httpd as a small webserver which allows me to stream the video locally without any problems.
Upvotes: 0
Reputation: 120
Deejdd, it would help if you can post your code, so that I'll be able to figure out what part in you code is not working
Upvotes: 1