Architecture
Last updated
Last updated
Content player v1 can be integrate in Desktop app, Mobile app by using the npm package. This provide the capability to render ECML, epub, pdf, mp4, youtube, mp3 and html type contents. V1 player has dependency on sunbird telemetry sdk and content plugins.
Content player v1 is able to play the different format of content using the configuration. You just need to provide the mimeType and plugin launchers in config. Its capable to load the content launchers according to the mimeType
Base launcher is responsible to launch following launchers based on the mime types of the assets
ECML : ECML launcher derived from the base launcher and also is responsible to launch the ecml type assets
Epub : Epub type assets can be render by using this launcher
PDF : If the mime type is application/pdf, base launcher will launches the pdf launcher
Video : This launcher is responsible to to launch the mp4, mp3, webm and youtube type assets
HTML : This launcher also derived from the base launcher and this launcher is responsible to launch the Html files.
Content player v1 will allows to play the external streaming url by adding the domain into the whiteListUrl config
Sample config to add white listed urls
Please refer to the config section of README.md file of the below git repository