videojs-youtube-swf communicates with swf directly rather than using iframe. It has less delay and performs well. It is used at our website viki.com.
You can use bower
bower install videojs-youtube-swf
And also npm
npm install videojs-youtube-swf
Load video.js, video-js.css and videojs-youtube-swf.min.js
<head>
<link rel="stylesheet" href="video-js.css">
<script src="video.js"></script>
<script src="videojs-youtube-swf.min.js"></script>
</head>
video tag
<video id="example" class="video-js vjs-default-skin" preload controls width ="976" height="450" data-setup="">
<source src="http://www.youtube.com/watch?v=wVH--bLiVZ8#t=10" type="video/youtube">
</video>
- Install grunt-cli
npm install -g grunt-cli
- build
grunt
- test
grunt test