| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 5 | 5 |
| 6 <script src=../media-file.js></script> | 6 <script src=../media-file.js></script> |
| 7 <script src=../video-test.js></script> | 7 <script src=../video-test.js></script> |
| 8 <script src=../media-controls.js></script> | 8 <script src=../media-controls.js></script> |
| 9 | 9 |
| 10 <script> | 10 <script> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 consoleWrite(""); | 42 consoleWrite(""); |
| 43 run("video.currentTime = " + (info[seekedCount])); | 43 run("video.currentTime = " + (info[seekedCount])); |
| 44 } | 44 } |
| 45 | 45 |
| 46 function loaded() | 46 function loaded() |
| 47 { | 47 { |
| 48 findMediaElement(); | 48 findMediaElement(); |
| 49 testTrack = document.querySelector('track'); | 49 testTrack = document.querySelector('track'); |
| 50 video.src = findMediaFile('video', '../content/counting'); | 50 video.src = findMediaFile('video', '../content/counting'); |
| 51 waitForEvent('seeked', seeked); | 51 waitForEvent('seeked', seeked); |
| 52 waitForEvent('canplaythrough', function() { video.currentTime = .5;
}); | 52 waitForEventOnce('canplaythrough', function() { video.currentTime =
.5; }); |
| 53 } | 53 } |
| 54 | 54 |
| 55 </script> | 55 </script> |
| 56 </head> | 56 </head> |
| 57 <body onload="loaded()"> | 57 <body onload="loaded()"> |
| 58 <video controls > | 58 <video controls > |
| 59 <track src="captions-webvtt/captions-gaps.vtt" kind="captions" defau
lt> | 59 <track src="captions-webvtt/captions-gaps.vtt" kind="captions" defau
lt> |
| 60 </video> | 60 </video> |
| 61 <p>Test that cues are rendered and removed.</p> | 61 <p>Test that cues are rendered and removed.</p> |
| 62 </body> | 62 </body> |
| 63 </html> | 63 </html> |
| OLD | NEW |