0.1.7 • Published 3 years ago

ekinas-stream-player v0.1.7

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

eKinas stream player

Shaka player based multimedia streamer with added screenshot and video trim functions.

Installation:

  1. Install dependencies:
npm install shaka-player
  1. 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"
            ]
  1. Add stylesheet to build options in angular.json:
"styles": [
              "node_modules/shaka-player/dist/controls.css"
            ]
  1. Install player component:
npm install ekinas-stream-player
  1. 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;
0.1.2

3 years ago

0.1.1

3 years ago

0.1.7

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.0

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago