blob: 650b3f1a8c611a26fcd0a54eee0fb02c55e66f61 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>request-video-frame-loadstart</title>
<script src="video-test.js"></script>
<script src="media-file.js"></script>
<script>
window.addEventListener('load', async event => {
findMediaElement();
let videoFramePromise = new Promise((resolve, reject) => {
consoleWrite('RUN(video.requestVideoFrameCallback(callback))');
video.requestVideoFrameCallback(resolve);
});
run('video.src = findMediaFile("video", "content/test")');
await shouldResolve(videoFramePromise);
endTest();
});
</script>
</head>
<body>
<video muted></video>
</body>
</html>