Skip to content

Latest commit

 

History

History
77 lines (48 loc) · 1.23 KB

README.md

File metadata and controls

77 lines (48 loc) · 1.23 KB

Sunbird Player Sdk

Contains common component which can be used across the player like start page, end page and side menu and header navigations

Usage

Quick start

npm i @project-sunbird/sunbird-player-sdk

Add the module to the your player root module

import { SunbirdPlayerSdkModule } from '@project-sunbird/sunbird-player-sdk';

@NgModule({
  ...
  imports: [
    ...,
    SunbirdPlayerSdkModule
  ]
})

add the assets in angular.json file

....
 "assets": [
              "src/favicon.ico",
              "src/assets",
              {
                "glob": "**/*",
                "input": "node_modules/@project-sunbird/sunbird-player-sdk/lib/assets/",
                "output": "/assets/"
              }

...

after that you can use the components like below

  <sb-player-start-page  [title]="title" [progress]="progress"></sb-player-start-page>

Development

Prerequisites

Node 12+

Fork the repo and execute below steps

cd <forked-folder>

npm install

cd projects/sunbird-player-sdk

npm install

cd ../..

npm run build

This will build the library

Running unit tests

Run ng test to execute the unit tests via Karma.