Nondeterministic Polynomial Munchies

    @project-sunbird/content-player-interface

    0.0.3 • Public • Published

    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.

    Install

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

    DownloadsWeekly Downloads

    13

    Version

    0.0.3

    License

    MIT

    Unpacked Size

    6.06 kB

    Total Files

    3

    Last publish

    Collaborators

    • manjunath-davanam
    • palla.kartheekreddy
    • venkateshwaran
    • vinukumar_vs