Integration Summary
Integration APIs
| **Initialize Objects** |
|
Initialize the top-level object. |
|
This object needs to be instantiated once for each video playback, and is used to report the video-related events in an application. Typically, it is instantiated after the |
|
Call this API to set the Predefined metadata. |
Conviva.Analytics.
Call this API to set the Device metadata. To know about the values for device metadata constants, such as device Model and Category, refer to the API reference document, and search for the desired constant. |
|
Call this API to update or amend metadata. |
| **Reports Events and Metadata** |
|
Set Chromecast CAF player reference to Conviva video analytics object. If Core SDK and Chromecast CAF module are loaded in private scope instead of global scope, then pass the ChromecastCAF module object as the second argument:
|
|
Call this API when:
It's critical to make this API call correctly to monitor the video experience. For example, if the call is delayed (say, when the video starts rather than the user clicking play*), the Video Startup Time will be under-reported and the Video Start Failures will be missed. |
|
Required, if your application has Ads. Inform videoAnalytics object that an ad break has been started. |
|
Only applicable for custom ad integration, don't call for ad modules. For more details, refer to the Ad session diagrams. |
|
Call this when the video play back ends. |
| **Report Playback Metrics**
Most of the metrics such as player states, seek, buffering, are automatically collected. However, there are these metrics that you need to report for Chromecast CAF module: |
|
Report the buffer length |
|
Report frequently the rendered frame rate |
|
Report the CDN IP address |
|
At videostart and whenever audio language changes |
|
At video start and whenever subtitles language changes |
|
At video start and whenever closed captions language changes |
|
At video start and frequently thereafter |
| **Report User Actions** |
|
|
|
|
|
|
|
|
| **Report Errors**
ChromecastCAF module auto-collects the reportPlaybackErrors. Need not report them. |
|
When the playback has FATAL errors from which it does not recover, invoke this method, which internally closes the video session. |
| **Report Custom Playback Events** |
videoAnalytics.reportPlaybackEvent(/* string */ eventType, /* object */ eventDetail)
For more details about the custom playback events, reach out to your Conviva representative. |
| **Cleanup Session** |
|
Call these APIs to release the object on player's sudden exit, application's graceful exit, or when the Conviva object needs to be destroyed. |