4 <script src=media-file.js
></script>
5 <script src=video-test.js
></script>
13 var videos
= document
.getElementsByTagName('video');
16 run('controller = video.controller');
17 controller
.addEventListener('canplaythrough', canplaythrough
, true);
18 var src
= findMediaFile('video', 'content/test');
23 function canplaythrough()
25 consoleWrite("EVENT(canplaythrough)");
26 controller
.removeEventListener('canplaythrough', canplaythrough
, true);
27 controller
.addEventListener('pause', pause
, true);
28 run('controller.pause()');
32 consoleWrite("EVENT(pause)");
33 controller
.removeEventListener('pause', pause
, true);
34 controller
.addEventListener('play', play
, true);
35 run('controller.unpause()');
40 consoleWrite('EVENT(play)');
41 controller
.removeEventListener('play', play
, true);
42 testExpected('controller.playbackState', 'waiting');
43 controller
.addEventListener('playing', playing
, true);
44 run('controller.play()');
49 consoleWrite("EVENT(playing)");
50 controller
.removeEventListener('playing', playing
, true);
55 <body onload=
"start()">
56 <video mediaGroup=
"group" controls
></video>
57 <video mediaGroup=
"group" controls
></video>