Monday, 17 November 2014

Open source HTML5 & Flash video player Video.JS

Use Video.js


In the <head>:

<link href="" rel="stylesheet">
<script src=""></script>

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.jpg"
 <source src="MY_VIDEO.mp4" type='video/mp4'>
 <source src="MY_VIDEO.webm" type='video/webm'>
 <p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="" target="_blank">supports HTML5 video</a></p>

No comments:

Post a Comment

Alternative content