0.1.7 • Published 6 years ago

video-mill v0.1.7

Weekly downloads
-
License
ISC
Repository
github
Last release
6 years ago

VideoMill

HLS video playback module

Usage

To use the video factory get the instance of it:

let videoFactory = VideoFactory.getInstance;

... then create video:

videoFactory.createVideo(videoID, playList);

you can use this test playlist:

https://multiplatform-f.akamaihd.net/i/multi/will/bunny/big_buck_bunny_,640x360_400,640x360_700,640x360_1000,950x540_1500,.f4v.csmil/master.m3u8

let videoFactory = VideoFactory.getInstance;
let videoID = 1;
let playList = "https://multiplatform-f.akamaihd.net/i/multi/will/bunny/big_buck_bunny_,640x360_400,640x360_700,640x360_1000,950x540_1500,.f4v.csmil/master.m3u8";
videoFactory.createVideo(videoID, playList);

Also you can pass parameters to it as 3rfd parameter:

let parameters = {
    autoplay: true,
    pauseOnHide: true,
    unpauseOnShow: true,
    unpauseOnClick: false
};
videoFactory.createVideo(videoID, playList, parameters);
0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago