EventMessageData

@Serializable
data class EventMessageData(val bandwidth: Long, val bitrate: Long, val bufferDuration: Long, val duration: Long, val playbackDuration: Long, val position: Long, val positionTimestamp: Long?, val stall: EventMessageData.Stall, val streamType: EventMessageData.StreamType, val url: String, val vpn: Boolean?, val frameDrops: Int) : MessageData

Represents a generic event, which contains metrics about the current media stream.

Constructors

Link copied to clipboard
constructor(bandwidth: Long, bitrate: Long, bufferDuration: Long, duration: Long, playbackDuration: Long, position: Long, positionTimestamp: Long?, stall: EventMessageData.Stall, streamType: EventMessageData.StreamType, url: String, vpn: Boolean?, frameDrops: Int)

Types

Link copied to clipboard
@Serializable
data class Stall(val count: Int, val duration: Long)

Information about stalls.

Link copied to clipboard

The type of stream (live or on demand).

Properties

Link copied to clipboard

The device-measured network bandwidth, in bits per second.

Link copied to clipboard

The bitrate of the current stream, in bits per second.

Link copied to clipboard
@SerialName(value = "buffered_duration")
val bufferDuration: Long

The forward duration of the buffer, in milliseconds.

Link copied to clipboard

The duration of the media being player, in milliseconds.

Link copied to clipboard
@SerialName(value = "frame_drops")
val frameDrops: Int

The number of frame drops.

Link copied to clipboard
@SerialName(value = "playback_duration")
val playbackDuration: Long

The duration of the playback, in milliseconds.

Link copied to clipboard

The position of the player, in milliseconds.

Link copied to clipboard
@SerialName(value = "position_timestamp")
val positionTimestamp: Long?

The current player timestamp, as retrieved from the playlist.

Link copied to clipboard

The information about stalls.

Link copied to clipboard
@SerialName(value = "stream_type")
val streamType: EventMessageData.StreamType

The type of stream being played.

Link copied to clipboard
val url: String

The URL of the stream.

Link copied to clipboard
val vpn: Boolean?

true if a VPN is enabled, false otherwise, null if the status could not be determined.