MPEG-DASH/HLS/Progressive streaming HTML5 video player.
(function () {
'use strict';
var video = require('unfinished-video-player'),
$ = require('jquery');
$(document).ready(function () {
video
.create({
currentTimeChangeHandler: function (val, old) { console.log(val, old) } //override currentTimeChangeHandler method
})
.init({
autoplay: false, //defaults to true
controls: false, //defaults to true
watch: false, //watch video properties, defaults to true
autoplay: false, //defaults to true
fill: 'cover' //deaults to 'contain'
})
.render($('#element-id')) //append video to a container, default container is body if no argument is supplied
.setSrc('/videos/sample.mov/')
.setPoster('/images/poster.jpg');
});
})();