Organizational Research By

Surprising Reserch Topic

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 ()
   { video.play(); 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 android_master
edited Sep 12, 2013
0 votes
48 views



Related Hot Questions



Government Jobs Opening


...