This project was generated with Angular CLI version 7.1.2.
This library provides an embeddable video viewer component
npm install
Step 2 : Run ng build to build the library. [ For development you can skip this step and follow step 3]
ng build
The build artifacts will be stored in the dist/video-player-v2.
ng serve [will deploy the video player demo app http://localhost:4000]
Directory Structure :
- video-player-v2. [ Sunbird video player library ]
- Demo. [ Sample integrated angular app with video player library ]
For help getting started with a new Angular app, check out the Angular CLI.
For existing apps, follow these steps to begin using .
npm install sunbird-video-player-v2. [WIP]
Import the NgModule for each component you want to use:
import { VideoPlayerV2Module } from 'video-player-v2';
@NgModule({
...
imports: [ VideoPlayerV2Module,
CarouselModule.forRoot()],
...
})
export class TestAppModule { }
In your component template add below placeholder