PlaybackStatus

sealed interface PlaybackStatus(source)

Where the player is in its lifecycle.

Ready means presentable, not buffered: whether data is available is PlayerState.isStalled, on its own axis.

Inheritors

Types

Link copied to clipboard
data object Ended : PlaybackStatus

Playback reached the end of the composition.

Link copied to clipboard
class Error(val error: PlaybackError) : PlaybackStatus

Playback failed.

Link copied to clipboard
data object Idle : PlaybackStatus

No composition set.

Link copied to clipboard

A composition is being prepared.

Link copied to clipboard
data object Ready : PlaybackStatus

Presentable.

Link copied to clipboard
data object Released : PlaybackStatus

The player was closed. Terminal: no flow of this player emits again.