public
Created

Firefox HTML5 <video> loop jQuery Workaround

  • Download Gist
index.html
HTML
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<!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>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.