javascript - How to get html5 video work on android 4.3 -


i have app videos placed using html5 video tag. works fine in chrome browser (desktop), not play on android (tested on tablet android 4.3). shows player black background (no video).

i have tested nexus 5 (android 5.1.1) , works fine.

Î have tried html:

                <video id="video" controls>                     <source src="../videos/portfolio.mp4">                     <img src="../images/pf_preview.png" width="100%"/>                         browser not support html5 video.                 </video>                 <script>var video = document.getelementbyid('video');                     video.addeventlistener('click',function(){                     video.play();                 },false); </script> 

i deleted type of video, , put js code play video manually. still fails play.

any ideas how fix it?

best


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -