Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Prevent the playbook from falling asleep
<?php
// What? This:
if(isset($_GET["loop"])) {
?>
<style>
video[autoplay][loop]{
width:1px;
position:absolute;
}
</style>
<video autoplay loop src="small-file.mp4"></video>
<script>
document.querySelector("title").innerHTML = "&nbsp;";
</script>
<?php
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment