I am using an Android html5Webview with html5 element.
I am auto-playing the video from javascript (when the page loads) using this code:
document.getElementsByTagName('video')[0].play();
(taken from here:).
This works perfectly on Android 4.1.2 (Samsung Galaxy 3, note2). On Android 4.2.2 (Galaxy S4, Nexus 10), the video does not auto-play. It does start playing when clicking the screen.
I tried adding timeout to the play event, it did not work. Any ideas what could be the cause of it?
tnx! Yaniv