ApiVideoPlayerAnalyticsAgent

An agent that sends events to the api.video player analytics.

Parameters

options

The options for the agent.

sessionId

The session ID for the agent.

version

The version of the agent.

userAgent

The user agent for the agent.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun addEvent(event: Event): Boolean

Adds an event to the agent.

Link copied to clipboard
open override fun close()
Link copied to clipboard
fun disable()

Disables the agent.

Link copied to clipboard
fun setMediaId(mediaId: String)

Sets a new media ID for the agent. The media ID is the video ID or the live stream ID from api.video.