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 VideoJS player reference to Conviva video analytics object. If Core SDK and Video.js module are loaded in private scope instead of global scope, then pass the Video.js 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 VideoJS module: |
videoAnalytics.
Report frequently the rendered frame rate |
|
Report the CDN IP address |
| **Report User Actions** |
|
|
|
|
|
|
|
|
| **Report Errors**
VideoJS 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. |