ekinas-stream-player
v0.1.7
Published
Shaka player based multimedia streamer with added screenshot and video trim functions.
Downloads
30
Readme
eKinas stream player
Shaka player based multimedia streamer with added screenshot and video trim functions.
Installation:
- Install dependencies:
npm install shaka-player
- Add scripts to build options in angular.json:
"scripts": [
"node_modules/shaka-player/dist/shaka-player.compiled.js",
"node_modules/shaka-player/dist/shaka-player.ui.js"
]
- Add stylesheet to build options in angular.json:
"styles": [
"node_modules/shaka-player/dist/controls.css"
]
- Install player component:
npm install ekinas-stream-player
- Import EkinasStreamPlayerModule to app module imports.
Using the player component:
<lib-ekinas-stream-player
[manifestUri]="'https://storage.googleapis.com/shaka-demo-assets/angel-one/dash.mpd'"
[limitStart]="0"
[limitEnd]="0"
[currentTime]="0"
></lib-ekinas-stream-player>
- [manifestUri] = (input:string) url to streaming manifest file (default: sample manifest);
- [limitStart] = (input:float) stream START point in seconds (default: 0);
- [limitStart] = (input:float) stream END point in seconds, when 0 uses stream length value (default: 0);
- [currentTime] = (input:float) stream CURRENT POINT IN TIME (seconds);
- (makeSnap) = (output: { data:imageData, timestamp:{h, m, s, f} }) fires when a new snapshot image is generated, returns snapshot as imageDate and timestamp in hours:minutes:seconds:frames;
- (makeClip) = (output: { limitStart: float, limitEnd: float }) fires when a new clip is generated, returns start and end numeric values;