OnPlaybackProgressRequest

@Serializable
data class OnPlaybackProgressRequest(val itemId: UUID, val mediaSourceId: String? = null, val positionTicks: Long? = null, val audioStreamIndex: Int? = null, val subtitleStreamIndex: Int? = null, val volumeLevel: Int? = null, val playMethod: PlayMethod? = null, val liveStreamId: String? = null, val playSessionId: String? = null, val repeatMode: RepeatMode? = null, val isPaused: Boolean? = false, val isMuted: Boolean? = false)

Reports a session's playback progress.

Constructors

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

Properties

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

The audio stream index.

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

Indicates if the player is muted.

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

Indicates if the player is paused.

Link copied to clipboard
@SerialName(value = "itemId")
val itemId: UUID

Item id.

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

The live stream id.

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

The id of the MediaSource.

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

The play method.

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

The play session id.

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

Optional. The current position, in ticks. 1 tick = 10000 ms.

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

The repeat mode.

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

The subtitle stream index.

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

Scale of 0-100.