Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 22c4c57a39
Fetching contributors…

Cannot retrieve contributors at this time

51 lines (41 sloc) 1.198 kb
<html>
<head>
<script src=media-file.js></script>
<script>
var video;
if (window.testRunner)
testRunner.waitUntilDone();
function finish()
{
video.removeEventListener("seeked", finish);
if (window.testRunner)
testRunner.notifyDone();
}
function playing()
{
video.removeEventListener("playing", playing);
// Ensure that the frame is always the same in pixel result.
video.addEventListener("seeked", finish);
video.pause();
video.currentTime = 0;
}
function canplaythrough()
{
video.removeEventListener("canplaythrough", canplaythrough);
video.src = findMediaFile("video", "content/test");
video.addEventListener("playing", playing);
video.play();
}
function test()
{
video = document.getElementsByTagName('video')[0];
video.addEventListener("canplaythrough", canplaythrough);
video.src = findMediaFile("video", "content/counting");
}
</script>
</head>
<body onload="test()">
<p>Making sure the controller looks ok after a second load().</p>
<video controls></video>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.