blob: 862c90a3d599e9f4b42243b0247a5d15dedf7510 [file] [log] [blame]
<!DOCTYPE html>
<title>Test that the painted buffered range contains currentTime.</title>
<script src="../../media-resources/media-file.js"></script>
<video controls></video>
<script>
var video = document.querySelector("video");
if (window.testRunner) {
testRunner.waitUntilDone();
}
video.onended = function() {
if (window.testRunner) {
testRunner.notifyDone();
}
};
video.onseeked = function() {
video.play();
};
video.onloadedmetadata = function() {
video.currentTime = video.duration - 0.5;
};
var mediaFile = findMediaFile("audio", "../../../media/content/test");
var type = mimeTypeForExtension(mediaFile.split(".").pop());
video.src = "http://127.0.0.1:8000/media/video-throttled-load.cgi?name=" + mediaFile + "&throttle=5000&nph=1&type=" + type;
</script>