android - Playing multiple video simultaneously in HTML video tag in WebView -
android - Playing multiple video simultaneously in HTML video tag in WebView -
i created simple html page multiple video tag & trying play video simultaneously on native webview
of android 4.2.2. working on chrome browser of android 4.2.2. tried chrome-webview
bundle github in application utilize android-chrome webview
class object instead of native webkit-engine/webview
. display player on html page of video doesn't played.
i not understand why happen because have tried chrome-webview
code , same result, please suggest me solution or alternative same.
i can share html code
<!doctype html> <html> <head> <script> function init() { enablevideoclicks(); } function enablevideoclicks() { var videos = document.getelementsbytagname('video') || []; (var = 0; < videos.length; i++) { // todo: utilize attachevent in ie videos[i].addeventlistener('click', function(videonode) { homecoming function() { videonode.play(); }; }(videos[i])); } } </script> </head> <body onload="init()"> <video src="movie1.mp4" poster = "l.jpg" width="400" height="300" autoplay controls loop></video> <video src="movie2.mp4" poster = "l.jpg" width="400" height="300" autoplay controls loop></video> <video src="movie3.mp4" poster = "l.jpg" width="400" height="300" autoplay controls loop></video> ... </body> </html>
yes possible. see next answers more information:
enabling html5 video playback in android webview?
playing html5 video on fullscreen in android webview
webview , html5 <video>
android android-webview
Comments
Post a Comment