OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src=media-file.js></script> | 4 <script src=media-file.js></script> |
5 <script src=video-test.js></script> | 5 <script src=video-test.js></script> |
6 <script> | 6 <script> |
7 function onWindowLoad(e) | 7 function onWindowLoad(e) |
8 { | 8 { |
9 video = document.getElementById('video'); | 9 video = document.getElementById('video'); |
10 | 10 |
11 video.src = findMediaFile("video", "content/test"); | 11 video.src = findMediaFile("video", "content/test") + "#t=2"; |
12 testExpected("video.currentTime", 0); | 12 testExpected("video.currentTime", 0); |
13 video.currentTime = 1; | 13 video.currentTime = 1; |
14 | 14 |
15 waitForEvent('loadedmetadata', function() | 15 waitForEvent('loadedmetadata', function() |
16 { | 16 { |
17 testExpected("video.currentTime", 1); | 17 testExpected("video.currentTime", 1); |
18 }); | 18 }); |
19 | 19 |
20 waitForEvent('seeked', function() | 20 waitForEvent('seeked', function() |
21 { | 21 { |
22 endTest(); | 22 endTest(); |
23 }); | 23 }); |
24 } | 24 } |
25 | 25 |
26 window.addEventListener('load', onWindowLoad, false); | 26 window.addEventListener('load', onWindowLoad, false); |
27 </script> | 27 </script> |
28 </head> | 28 </head> |
29 <body> | 29 <body> |
30 <video controls id="video"></video> | 30 <video controls id="video"></video> |
31 <p>Test currentTime values when setting while HAVE_NOTHING.</p> | 31 <p>Test currentTime values when setting while HAVE_NOTHING for media fra
gment URI.</p> |
32 <br/> | 32 <br/> |
33 </body> | 33 </body> |
34 </html> | 34 </html> |
OLD | NEW |