blob: f485fdb4305541426c5fab9325b7e931863b99ac [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="media-file.js"></script>
<script src="video-test.js"></script>
<script>
if (window.internals) {
internals.settings.setVideoPlaybackRequiresUserGesture(true);
internals.settings.setRequiresUserGestureToLoadVideo(false);
}
function done()
{
passTest("Did load metadata without user gesture");
}
function start()
{
findMediaElement();
waitForEvent("loadedmetadata", done);
video.src = findMediaFile("video", "content/test");
}
</script>
</head>
<body onload="start()">
<video id="video"></video>
</body>
</html>