unfinished-video-player
v1.0.5
Published
DashJS/HLS/Progressive video player implementation.
Downloads
11
Readme
Unfinished Video Player
MPEG-DASH/HLS/Progressive streaming HTML5 video player.
Example
(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');
});
})();