<html>
<head>
<title>Autoplay Test Page</title>
</head>
<body>
<iframe id=subframe></iframe>
<video id=video>
<source src=bigbuck.webm type=video/webm />
</video>
<script>
function tryPlayback() {
const video = document.getElementById('video');
return video.play().then(() => {
return true;
}, (e) => {
return e.name != 'NotAllowedError';
});
}
</script>
</body>
</html>