<!DOCTYPE html>
<script>
internals.settings.setAutoplayPolicy('document-user-activation-required');
window.addEventListener('message', e => {
if (e.data.command == 'play') {
var video = document.createElement('video');
video.play();
window.parent.postMessage({
result: !video.paused
}, '*');
video.pause();
}
});
</script>