PlayerStateInfo

@Serializable
data class PlayerStateInfo(val positionTicks: Long? = null, val canSeek: Boolean, val isPaused: Boolean, val isMuted: Boolean, val volumeLevel: Int? = null, val audioStreamIndex: Int? = null, val subtitleStreamIndex: Int? = null, val mediaSourceId: String? = null, val playMethod: PlayMethod? = null, val repeatMode: RepeatMode, val playbackOrder: PlaybackOrder, val liveStreamId: String? = null)

Constructors

Link copied to clipboard
constructor(positionTicks: Long? = null, canSeek: Boolean, isPaused: Boolean, isMuted: Boolean, volumeLevel: Int? = null, audioStreamIndex: Int? = null, subtitleStreamIndex: Int? = null, mediaSourceId: String? = null, playMethod: PlayMethod? = null, repeatMode: RepeatMode, playbackOrder: PlaybackOrder, liveStreamId: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "AudioStreamIndex")
val audioStreamIndex: Int?

The index of the now playing audio stream.

Link copied to clipboard
@SerialName(value = "CanSeek")
val canSeek: Boolean

A value indicating whether this instance can seek.

Link copied to clipboard
@SerialName(value = "IsMuted")
val isMuted: Boolean

A value indicating whether this instance is muted.

Link copied to clipboard
@SerialName(value = "IsPaused")
val isPaused: Boolean

A value indicating whether this instance is paused.

Link copied to clipboard
@SerialName(value = "LiveStreamId")
val liveStreamId: String?

The now playing live stream identifier.

Link copied to clipboard
@SerialName(value = "MediaSourceId")
val mediaSourceId: String?

The now playing media version identifier.

Link copied to clipboard
@SerialName(value = "PlaybackOrder")
val playbackOrder: PlaybackOrder

The playback order.

Link copied to clipboard
@SerialName(value = "PlayMethod")
val playMethod: PlayMethod?

The play method.

Link copied to clipboard
@SerialName(value = "PositionTicks")
val positionTicks: Long?

The now playing position ticks.

Link copied to clipboard
@SerialName(value = "RepeatMode")
val repeatMode: RepeatMode

The repeat mode.

Link copied to clipboard
@SerialName(value = "SubtitleStreamIndex")
val subtitleStreamIndex: Int?

The index of the now playing subtitle stream.

Link copied to clipboard
@SerialName(value = "VolumeLevel")
val volumeLevel: Int?

The volume level.