Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Firefox HTML5 <video> loop jQuery Workaround

View index.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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.