<!DOCTYPE html> | |
<html> | |
<meta charset='utf-8'> | |
<title>Simple autoplay test page</title> | |
<video src='bigbuck.webm'></video> | |
<script> | |
function attemptPlay() { | |
document.querySelector('video').play().then(function() { | |
window.domAutomationController.send(true); | |
}, function() { | |
window.domAutomationController.send(false); | |
}); | |
} | |
</script> | |
</html> |