AudioPlayerController

class AudioPlayerController(audioPlayer: AudioPlayer, getRecordingUri: (Attachment) -> String?)

Constructors

Link copied to clipboard
constructor(audioPlayer: AudioPlayer, getRecordingUri: (Attachment) -> String?)

Properties

Link copied to clipboard
val state: MutableStateFlow<AudioPlayerState>

Functions

Link copied to clipboard
fun changeSpeed(attachment: Attachment)
Link copied to clipboard
fun pause()

Pauses the current audio recording.

Link copied to clipboard
fun play(attachment: Attachment)

Plays the audio recording attachment.

Link copied to clipboard
fun reset()

Resets the current audio recording.

Link copied to clipboard
fun resetAudio(attachment: Attachment)
Link copied to clipboard
fun resume()

Resumes the current audio recording.

Link copied to clipboard
fun seekTo(attachment: Attachment, progress: Float)
Link copied to clipboard
fun startSeek(attachment: Attachment)
Link copied to clipboard
fun togglePlayback(attachment: Attachment)

Plays or pauses the audio recording attachment.