Socket
Book a DemoInstallSign in
Socket

@project-sunbird/content-player-interface

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@project-sunbird/content-player-interface

It acts as an interface to access the content-player method

0.0.3
latest
npmnpm
Version published
Maintainers
2
Created
Source

Content-Player-Interface

Which provides an interface to sunbird-content-player

Setup

Download content-player-interface as NPM

Run npm i @project-sunbird/content-player-interface

Methods

PI.getConfig() : Which return the content-player configurations.

PI.EkstepRendererAPI: Which return the content-player API methods.

PI.getcontentMetadata(contentId, cb): Which return the metadata of the content.

PI.exit(): Which is used to exit the player (Useful in mobile, While playing contents in mobile if user wants to exit the player from mobile).

PI.getTelemetryService: Which returns the telemetry instance object, To generate an telemetry events.

PI.isMobile: Which return the Boolean, Which say's whether content/game is playing in mobile or web environment.

PI.gotoEndPage Which shows the content endpage.

Keywords

content-player

FAQs

Package last updated on 12 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.