Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Firefox HTML5 <video> loop jQuery Workaround
<!DOCTYPE html>
<style type="text/css">
#video1 {
max-width: 100%;
max-height: 100%;
<script src=""></script>
<script type="text/javascript">
$("#video1").bind('ended', function(){;
<video id="video1" src="desktop.webm" autoplay loop></video>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment