Event

@Serializable
data class Event(val emittedAtInMs: Long, val type: Event.EventType, val videoTimeInS: Float, val videoWidth: Int, val videoHeight: Int, val paused: Boolean, val errorCode: ErrorCode)

Represents a player event.

Parameters

emittedAtInMs

The time at which the event was emitted, in milliseconds.

type

The type of the event.

videoTimeInS

The time in the video at which the event was emitted, in seconds.

videoWidth

The width of the video at the time of the event.

videoHeight

The height of the video at the time of the event.

paused

Whether the video was paused at the time of the event.

errorCode

The error code, if the event is of type EventType.ERROR.

Constructors

Link copied to clipboard
constructor(emittedAtInMs: Long, type: Event.EventType, videoTimeInS: Float, videoWidth: Int, videoHeight: Int, paused: Boolean, errorCode: ErrorCode)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Represents the type of a player analytics event.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Whether type and paused are equal.

Link copied to clipboard
open override fun hashCode(): Int