CurrentAudioState

data class CurrentAudioState(val playingId: Int = -1, val playingSpeed: Float = 1.0f, val playingProgress: Float = 0.0f, val audioUri: String = "", val waveform: List<Float> = emptyList(), val playbackInMs: Int = 0, val durationInMs: Int = 0, val isLoading: Boolean = false, val isPlaying: Boolean = false, val isSeeking: Boolean = false)

Represents the ongoing state of the audio player.

Constructors

Link copied to clipboard
constructor(playingId: Int = -1, playingSpeed: Float = 1.0f, playingProgress: Float = 0.0f, audioUri: String = "", waveform: List<Float> = emptyList(), playbackInMs: Int = 0, durationInMs: Int = 0, isLoading: Boolean = false, isPlaying: Boolean = false, isSeeking: Boolean = false)

Properties

Link copied to clipboard

The URI of the audio that is currently playing.

Link copied to clipboard
val durationInMs: Int = 0

The duration of the audio that is currently playing.

Link copied to clipboard
val isLoading: Boolean = false

If the audio is currently loading.

Link copied to clipboard
val isPlaying: Boolean = false

If the audio is currently playing.

Link copied to clipboard
val isSeeking: Boolean = false
Link copied to clipboard
val playbackInMs: Int = 0

The current playback position in milliseconds.

Link copied to clipboard

The ID of the audio that is currently playing.

Link copied to clipboard

The progress of the audio playback.

Link copied to clipboard
val playingSpeed: Float = 1.0f

The speed of the audio playback.

Link copied to clipboard

The waveform of the audio that is currently playing.