Sunday, 6 October 2013

VIDEO.JS: The open source HTML5 video player

If you are looking for a video player for your website, then you are on the right place Videojs is an open source HTML5 Video Player and you can add it to your website easily.If you want to learn how to implement this video player to your site then click on tutorial button and follow the tutorial.




To add video player to your site first Add the following code in the <head> section:
In the <head>
<link href="http://vjs.zencdn.net/4.2/video-js.css" rel="stylesheet">
<script src="http://vjs.zencdn.net/4.2/video.js"></script>
Replace the my_video.mp4 and my_video.webm to your video location.
In the <body>
<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>

1 comment:

  1. i very like your post,thanks for sharing

    html5

    ReplyDelete