Organizational Research By

Surprising Reserch Topic questions - Question:html5 video on android - unexpected currentTime behavior

I have a video element on a page I'm loading on an Android tablet. There's a custom play button with the following event listener:

play_button.addEventListener("click", function ()
   {; tap_to_play.innerHTML = '';
     video.currentTime = offset;
     console.log(video.currentTime); }, false);

The first time I press the button, it will skip to the incorrect time. The logged currentTime will be 100, even though the video seems to skip to about 1400. If I press the button again when it's already playing, or pause and press the button again, it will go to the correct time. How can I get it to skip to the right location the first time?

asked Sep 13, 2013 in ANDROID by rajesh
edited Sep 12, 2013
0 votes

Related Hot Questions

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.