Test New Player
by hiteshbhilai2010
HTML
<!-- Chang URLs to wherever Video.js files will be hosted -->
<link href="http://vjs.zencdn.net/4.1/video-js.css" rel="stylesheet">
<!-- video.js must be in the <head> for older IEs to work. -->
<script src="http://vjs.zencdn.net/4.1/video.js"></script>
<!-- Unless using the CDN hosted version, update the URL to the Flash SWF -->
<script>
videojs.options.flash.swf = "video-js.swf";
</script>
<video id="example_video_1" class="video-js vjs-default-skin" preload="none" width="320" height="264" controls
poster="http://video-js.zencoder.com/oceans-clip.png"
data-setup="{}" autoplay>
<source src="http://video-js.zencoder.com/oceans-clip.mp4" type='video/mp4' />
</video>
<a href="#" onclick="javascript:restart();">restart</a>
<script>
_V_("#example_video_1", {});
_V_("#example_video_1").on("play", function() {
console.log("play");
});
function restart() {
_V_("#example_video_1").currentTime(0);
_V_("#example_video_1").play();
return false;
}
</script>
</body>
</html>