| <script src=media-file.js></script> |
| <script src=video-test.js></script> |
| var seekedEventCount = 0; |
| // We want to verify that seeking by an increment smaller than the test movie's time scale |
| // (the smallest unit of time in that file) succeeds. test.mp4 has a time scale of 2500, |
| // 0.0004 seconds, so start with that and decrease by half each time. |
| if (++seekedEventCount == 8) { |
| var increment = seekIncrement(); |
| consoleWrite("<br>** Seeking by " + increment); |
| video.currentTime += increment; |
| video.src = findMediaFile("video", "content/test"); |
| waitForEvent('canplaythrough', attemptSeek); |
| waitForEvent('seeked', seeked); |
| <p>Test seeking by very small increments.</p> |