5 <title>local video
</title>
7 <script src=media-file.js
></script>
8 <script src=video-test.js
></script>
13 testExpected("video.duration", 0, '>');
19 video
.removeEventListener("playing", playing
);
20 run("video.currentTime = video.duration - 0.2");
23 function loadedmetadata()
25 video
.addEventListener("ended", ended
);
26 video
.addEventListener("playing", playing
);
35 video
.addEventListener("loadedmetadata", loadedmetadata
);
36 video
.src
= findMediaFile("video", "content/test");
42 <body onload=
"start()">
43 <video controls autobuffer
></video>
44 <p>Tests that duration is known after playback ended.
</p>