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

gcc - MinGW's ld cannot perform PE operations on non PE output file -

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

c# - Search and Add Comment with OpenXML for Word -