| 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=../media-controls.js></script> | |
| 8 | 7 |
| 9 <script> | 8 <script> |
| 10 var requirePixelDump = true; | 9 var requirePixelDump = true; |
| 11 | 10 |
| 12 function loaded() | 11 function loaded() |
| 13 { | 12 { |
| 14 consoleWrite("Rendering horizontal line-positioned cues."); | 13 consoleWrite("Rendering horizontal line-positioned cues."); |
| 15 findMediaElement(); | 14 findMediaElement(); |
| 16 | 15 |
| 17 testTrack = document.querySelector('track'); | 16 testTrack = document.querySelector('track'); |
| 18 video.src = findMediaFile('video', '../content/test'); | 17 video.src = findMediaFile('video', '../content/test'); |
| 19 | 18 |
| 20 waitForEvent('seeked', endTest); | 19 waitForEvent('seeked', endTest); |
| 21 waitForEvent('canplaythrough', function() { | 20 waitForEvent('canplaythrough', function() { |
| 22 video.currentTime = .25; | 21 video.currentTime = .25; |
| 23 }); | 22 }); |
| 24 } | 23 } |
| 25 | 24 |
| 26 </script> | 25 </script> |
| 27 | 26 |
| 28 <script src=../video-test.js></script> | 27 <script src=../video-test.js></script> |
| 29 </head> | 28 </head> |
| 30 <body onload="loaded()"> | 29 <body onload="loaded()"> |
| 31 <video controls> | 30 <video> |
| 32 <track src="captions-webvtt/captions-snap-to-lines-set.vtt" kind="ca
ptions" default> | 31 <track src="captions-webvtt/captions-snap-to-lines-set.vtt" kind="ca
ptions" default> |
| 33 </video> | 32 </video> |
| 34 </body> | 33 </body> |
| 35 </html> | 34 </html> |
| OLD | NEW |