blob: 977c8365ef850581c38921ca93af259260230635 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
video {
width: 800px;
height: 400px;
}
</style>
<script>
function finishTest()
{
// As of this writing, two times through the run loop is long enough for the controls to come up.
// There's no guarantee; whether the controls are visible is not web exposed, so it doesn't have
// to happen in a certain number of timeouts.
setTimeout(function() {
setTimeout(function() {
webkit.messageHandlers.testHandler.postMessage("playing");
}, 0);
}, 0);
}
</script>
</head>
<body>
<video autoplay src="video-with-audio.mp4" webkit-playsinline onplaying=finishTest()></video>
</body>
</html>