OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <title>video with -webkit-appearance media-play-button</title> | 2 <title>controls of a non-blocked media element slaved to a media controller</tit
le> |
3 <script src="media-file.js"></script> | 3 <script src="media-file.js"></script> |
4 <video></video> | 4 <video controls></video> |
5 <script> | 5 <script> |
6 var video = document.querySelector('video'); | 6 var video = document.querySelector('video[controls]'); |
7 video.src = findMediaFile('video', 'content/test'); | 7 video.src = findMediaFile('video', 'content/test'); |
8 | 8 |
9 if (window.testRunner) { | 9 if (window.testRunner) { |
10 testRunner.waitUntilDone(); | 10 testRunner.waitUntilDone(); |
11 video.addEventListener('loadedmetadata', function() { | 11 video.addEventListener('canplay', function() { |
12 testRunner.notifyDone(); | 12 testRunner.notifyDone(); |
13 }); | 13 }); |
14 } | 14 } |
15 </script> | 15 </script> |
OLD | NEW |