Skip to content

Instantly share code, notes, and snippets.

@heff
Created November 11, 2012 01:19
Show Gist options
  • Save heff/4053269 to your computer and use it in GitHub Desktop.
Save heff/4053269 to your computer and use it in GitHub Desktop.
Setting up Video.js using the CDN-hosted video player files and the HTML5 video tag.
<link href="http://vjs.zencdn.net/c/video-js.css" rel="stylesheet">
<script src="http://vjs.zencdn.net/c/video.js"></script>
<video id="my_video_1" class="video-js vjs-default-skin" controls
preload="auto" width="640" height="264" poster="my_video_poster.png"
data-setup="{}">
<source src="my_video.mp4" type='video/mp4'>
<source src="my_video.webm" type='video/webm'>
</video>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment