All of the Video.js files are hosted for you on a CDN sponsored by Brightcove, so there’s no need to download and host them yourself (although that’s still an option).
To get Video.js running on a web page, just copy the following lines into your HTML document:
In the <head>:
The javascript must be in the
for older IEs to accept the HTML5 tags. If you already have an HTML5 shiv for video you can put it anywhere.
<link href="http://vjs.zencdn.net/c/video-js.css" rel="stylesheet">
<script src="http://vjs.zencdn.net/c/video.js"></script>
In the <body>:
Use the HTML5 Video Tag as normal, with added classes and a data-setup attribute. Also check out our Embed Builder.
<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>
Profit! You should now see our demo video playing on your web page. From here you can customize the video tag using the embed builder, change the video skin, or read more in the docs.
Don’t forget to follow us on twitter and/or sign up for our email newsletter to stay up-to-date on new features and versions.