Callbacks
Before starting​
- Find which parts of code you can extend with the callbacks in Basic instantiation code.
- Find in the API article the description of all the fields and functions that the
DIVA Player libandDIVA Back Office Adapterprovide.
DIVA Player callbacks(observers) full list​
DIVA Player is responsible for playback and all interactions with playback and UI.
| Field | Type | Description |
|---|---|---|
| divaPlayerExit | boolean | Called when the user presses the "Back" button on the remote to exit the |
| errorData | assocarray | If an error occurs in the |
| selectedTextTrack | string | When the user selects a new closed caption track, a callback is dispatched. More info in the API section. |
| CCMode | string | When the user changes the Closed Caption mode, a callback is dispatched. Available values: "Off", "On", "Instant replay", "When mute". More info in the API section. |
| selectedAudioTrack | assocarray |
|
| analyticsEvent | assocarray |
|
| mediaAnalyticsEvent | assocarray |
|
| playerPositionEvent | assocarray | Called when the player position (both relative to the video logical start and Unix timecode) of the main video changes. More info in the Resume Point API section. |
| playerStateEvent | string | Called when the player state of the main video changes. More info in the Resume Point API section. |
| videoMetadataEvent | node | Called when the video metadata of the main video changes. More info in the Resume Point API section. |
| accessibilityUpdateEvent | assocarray | Called when the user changes the accessibility option in the |
| onPlaybackSession | boolean | Called when the DIVA playback session changes. More info in the API section. |
| contentDuration | integer | Content duration in seconds. |
| recommendationRowItemSelect | assocarray | Called when a |
| onCrewItemSelection | assocarray | This callback is triggered when the user selects any |
DIVA Back Office Adapter callbacks(observers) full list​
The DIVA Back Office Adapter is used to exchange data with DIVA Back Office and provides the ability for DIVA Player to exchange data with DIVA Back Office through it.
| Field | Type | Description |
|---|---|---|
| error | assocarray | If an error occurs in the DIVA Back Office Adapter, the error data is dispatched through this field. |
| divaLaunchParams | assocarray | Called when the |
| dictionary | assocarray | Called when the |
| videoDataNode | node | More info in the VideoMetaDataMap section. |
| boAdapterReady | boolean | Called when the |