Android WebView: Video Playing issues -


note: works fine on 4.1.2 (samsung galavy tab 2), not work on 4.1.1

i trying play video inside webview, long using url web source of video, works fine.

<source src="http://0800200c9a66-content-preview.testvideo.com/video.mp4" type="video/mp4"> 

    function playvideo() { var video = document.getelementbyid("video");  video.focus(); video.load(); //have load first, play video.play(); 

the problem comes when change source video on sd card like
src="file:////storage/sdcard0/android/data/com.example.player/files/content_path/sample.mp4" type="video/mp4">

when give local file source, audio plays , video shows black screen. idea how fix this?

p.s. video url in above code not real one, example of code. real url works fine. note: works fine on 4.1.2 (samsung galavy tab 2), not work on 4.1.1


Comments