2

Using a shared video object I'm loading and playing different source movies dynamically. Resetting the current time like this works fine on the desktop;

$('video').bind('loadeddata', function () {
    var video = document.getElementById('video');
    video.currentTime = 0;
});

...but while QT is playing on the iPhone the newly loaded movie continues from the previous position of the play head. I tried using "loadedmetadata" also without success. Is there another way to restart the QT player?

Quinnland23
  • 486
  • 1
  • 3
  • 10
  • Changing the src on the video element alone is enough to reset the currentTime to 0 on desktop. iOS does this funky thing where you can't change the currentTime until it has media data for the location you're changing it to. You could try the 'canplay' event instead of 'loadedmetadata', but that is a pretty crap solution :/ – eug May 18 '13 at 17:28
  • I added more details [here](http://stackoverflow.com/questions/18266437/html5-video-currenttime-not-setting-properly-on-iphone) along with my solution. – Quinnland23 Aug 16 '13 at 22:31

0 Answers0