Skip to content

Instantly share code, notes, and snippets.

@timelf123
Created November 13, 2013 20:49
Show Gist options
  • Save timelf123/7456161 to your computer and use it in GitHub Desktop.
Save timelf123/7456161 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<link href="http://vjs.zencdn.net/4.2.2/video-js.css" rel="stylesheet">
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script>
var isChrome = !!window.chrome;
if( isChrome ) {
$("#aon_tl50_video").replaceWith($('<video id="videoId" width="640" height="360" controls autoplay preload><source src="aon_tl50.webmhd.webm" type="video/webm"></video>'));
}
</script>
</head>
<body>
<video id="aon_tl50_video" class="video-js" width="640" height="360" controls autoplay preload>
<source src="aon_tl50.mp4" type='video/mp4' />
<source src="aon_tl50.oggtheora.ogv" type='video/ogg' />
<source src="aon_tl50.webmhd.webm" type='video/webm' />
<source src="aon_tl50.flv" type='video/flv' />
</video>
<script src="http://vjs.zencdn.net/4.2.2/video.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment