PlayerState

data class PlayerState(val phase: PlayerPhase = PlayerPhase.IDLE, val item: PlaybackItem? = null, val queue: List<PlaybackItem> = emptyList(), val currentIndex: Int = -1, val repeatMode: RepeatMode = RepeatMode.OFF, val isShuffled: Boolean = false, val positionMillis: Long = 0, val bufferedPositionMillis: Long = 0, val durationMillis: Long? = null, val failure: PlayerFailure? = null)

Public player state. Signed media URLs are intentionally absent.

Constructors

Link copied to clipboard
constructor(phase: PlayerPhase = PlayerPhase.IDLE, item: PlaybackItem? = null, queue: List<PlaybackItem> = emptyList(), currentIndex: Int = -1, repeatMode: RepeatMode = RepeatMode.OFF, isShuffled: Boolean = false, positionMillis: Long = 0, bufferedPositionMillis: Long = 0, durationMillis: Long? = null, failure: PlayerFailure? = null)

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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard