Skip to content

Instantly share code, notes, and snippets.

@ryanoshea
Created September 11, 2011 00:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanoshea/1208975 to your computer and use it in GitHub Desktop.
Save ryanoshea/1208975 to your computer and use it in GitHub Desktop.
Firefox HTML5 <video> loop jQuery Workaround
<!DOCTYPE html>
<html>
<head>
<title>desktop</title>
<style type="text/css">
#video1 {
max-width: 100%;
max-height: 100%;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js"></script>
<script type="text/javascript">
$("#video1").bind('ended', function(){
this.play();
});
</script>
</head>
<body>
<video id="video1" src="desktop.webm" autoplay loop></video>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment