ConvivaConnector

class ConvivaConnector(appContext: Context, player: Player, convivaMetadata: ConvivaMetadata, convivaConfig: ConvivaConfiguration, adEventsExtension: EventDispatcher<AdEvent<*>>? = null)

Constructors

Link copied to clipboard
constructor(appContext: Context, player: Player, convivaMetadata: ConvivaMetadata, convivaConfig: ConvivaConfiguration, adEventsExtension: EventDispatcher<AdEvent<*>>? = null)

Functions

Link copied to clipboard
fun destroy()

Stops video and ad analytics and closes all sessions.

Link copied to clipboard
fun reportPlaybackEvent(eventType: String, eventDetail: Map<String, Any>?)

Reports a custom event to the current Conviva session.

Link copied to clipboard
fun reportPlaybackFailed(errorMessage: String)

Sets an error to the conviva session and closes the session.

Link copied to clipboard
fun setAdInfo(metadata: ConvivaMetadata)

Sets Conviva metadata on the Conviva ad analytics.

Link copied to clipboard

Sets Conviva metadata on the Conviva video analytics.

Link copied to clipboard

Explicitly stop the current session and start a new one.