MediaTrackingConfiguration

data class MediaTrackingConfiguration @JvmOverloads constructor(val id: String, var player: MediaPlayerEntity? = null, var pings: Boolean = true, var pingInterval: Int? = null, var maxPausedPings: Int? = null, var session: Boolean = true, var boundaries: List<Int>? = null, var entities: List<SelfDescribingJson>? = null, var captureEvents: List<KClass<*>>? = null)

Configuration for a MediaTracking instance.

Parameters

id

Unique identifier for the media tracking instance. The same ID is used for media player session if enabled.

player

Properties for the media player context entity attached to media events.

pings

Whether to track media ping events. Defaults to true.

pingInterval

Interval in seconds in which the media ping events are tracked. Defaults to 30 seconds unless pings are disabled.

maxPausedPings

Maximum number of consecutive ping events to send when playback is paused. Defaults to 1 unless pings are disabled.

session

Whether to track the media player session context entity along with media events. Defaults to true. The session entity contain the id identifier as well as statistics about the media playback.

boundaries

Percentage boundaries of the video to track percent progress events at.

entities

Additional context entities to attach to media events.

captureEvents

List of event types to allow tracking. If not specified (null), all tracked events will be allowed and tracked. Otherwise, tracked event types not present in the list will be discarded.

Constructors

Link copied to clipboard
constructor(id: String, player: MediaPlayerEntity? = null, pings: Boolean = true, pingInterval: Int? = null, maxPausedPings: Int? = null, session: Boolean = true, boundaries: List<Int>? = null, entities: List<SelfDescribingJson>? = null, captureEvents: List<KClass<*>>? = null)

Functions

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard