unfinished-video-player

1.0.5 • Public • Published

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');
  });
})();

Readme

Keywords

none

Package Sidebar

Install

npm i unfinished-video-player

Weekly Downloads

1

Version

1.0.5

License

ISC

Last publish

Collaborators

  • boris.etingof