OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>WebVTT two-cue layout after the first cue has ended (reference)</title> |
| 3 <video style="border:1px solid gray"> |
| 4 <source src="opera/track/webvtt/rendering/reftest/media/white.webm" type="vide
o/webm"> |
| 5 <source src="opera/track/webvtt/rendering/reftest/media/white.mp4" type="video
/mp4"> |
| 6 </video> |
| 7 <script> |
| 8 // Add a single cue at line -2, where it would be if there was a first |
| 9 // cue at line -1. |
| 10 var video = document.querySelector("video"); |
| 11 var track = video.addTextTrack("captions"); |
| 12 var cue = new VTTCue(0, 3, "cue 2"); |
| 13 cue.line = -2; |
| 14 track.addCue(cue); |
| 15 track.mode = "showing"; |
| 16 </script> |
OLD | NEW |