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

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -