@everydayspeech/eds-player
v7.0.4
Published
The custom video player for the SLP Web App
Downloads
474
Keywords
Readme
EdsPlayer
This library was generated with Angular CLI version 8.2.13.
The EDS-Player is a custom library made by the Everyday Speech Engineering Team and used across the SLP web project.
Stack
It's currently using the videojs library to handle the video processing.
- Angular for the project
- NPM for the library host
Component instance
Code scaffolding
Run ng generate component component-name --project eds-player
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project eds-player
.
Note: Don't forget to add
--project eds-player
or else it will be added to the default project in yourangular.json
file.
Build
Run ng build eds-player
to build the project. The build artifacts will be stored in the dist/
directory.
Publishing
After building your library with ng build eds-player
, go to the dist folder cd dist/eds-player
and run npm publish
.
Running unit tests
Run ng test eds-player
to execute the unit tests via Karma.
Tracking Events
Import into .ts component: import { EdsPlayerEvents } from '@everydayspeech/player';
Instance on constructor (private player: EdsPlayerEvents)
Global public functions
setUrl(url);
Further help
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.