Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

RefUI Integration

The IntegratedPlayer is used in the VOD playback section in RefUI.

At present, until "system" app support is not available, UI on startup will check if com.rdkcentral.aamp-cli-sh is installed[Using: AppManager.isInstalled('com.rdkcentral.aamp-cli-sh')] and if yes; it will launch com.rdkcentral.aamp-cli-sh [Using: AppManager.launchApp('com.rdkcentral.aamp-cli-sh')].

When user tries to launch a VOD asset, UI shows that in a new page. Player lifecycle is tied to this page's lifecycle as well.

on Page active:

  • Await till the IPPlayer websocket communication establishes
  • Create a new session using openSession with RefUI's AppID & AppInstanceID
  • Then use configureSession to set the DRM settings of the Player, register for the player events
  • Then start the playback using play with sessionID and url
  • On player events
    • Update progress bar
  • When user interacts with the player controls
    • PlayPause - call setRate or stop
    • FastForward/Backward - call setRate

On Page inactive

  • Unregister from player events
  • closeSession and destroy the player instance along with websocket close

Code Changes: https://github.com/rdkcentral/rdke-refui/tree/feature/ipplayer-poc-rebased