PlaybackState

A KalugaState of playback

Inheritors

Types

Link copied to clipboard
interface Active : PlaybackState

A PlaybackState indicating that playback has not ended

Link copied to clipboard

A PlaybackState indicating playback has ended and all resources have been released

Link copied to clipboard

A PlayingOrCompleted state indicating playback has completed

Link copied to clipboard

An InitializedOrError state indicating an error has occurred

Link copied to clipboard

A Prepared state indicating no playback has started

Link copied to clipboard

An InitializedOrError state indicating a media source was successfully initialized

Link copied to clipboard

An Active state indicating either initialization or a failure to do so

Link copied to clipboard
sealed class LoopMode

Determines the behaviour when playback of a PlayableMedia has completed

Link copied to clipboard

A Started state indicating playback is currently paused

Link copied to clipboard
data class PlaybackParameters(val rate: Float = 1.0f, val loopMode: PlaybackState.LoopMode = LoopMode.NotLooping)

Parameters to configure playback

Link copied to clipboard

A Started state indicating playback is currently ongoing

Link copied to clipboard

A Prepared state indicating playback was either started or completed

Link copied to clipboard

An Active state indicating that PlayableMedia was prepared and can be managed

Link copied to clipboard

A Prepared state indicating playback is in progress

Link copied to clipboard

An Active state indicating playback has been fully stopped

Link copied to clipboard

An Active state indicating no PlayableMedia has been initialized

Functions

Link copied to clipboard
open fun <S : KalugaState> remain(): suspend () -> S