EventMessageData

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
data class Stall(val count: Int, val duration: Long)

Represents information about stalls that occur during playback.

Link copied to clipboard

Represents the type of a media stream.

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 played, in milliseconds.

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

The number of frame drops that have occurred during playback.

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

The duration of the playback, in milliseconds.

Link copied to clipboard

The current playback 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

Information about stalls that have occurred during playback.

Link copied to clipboard

The type of stream being played.

Link copied to clipboard
val url: String

The URL of the stream being played.

Link copied to clipboard
val vpn: Boolean?

Indicates whether a VPN is enabled, or if the status could not be determined.