AudioPlayer
interface AudioPlayer
Audio player used to play audio messages.
Properties
Functions
Link copied to clipboard
Changes the speed of reproduction. Options are 1x, 1.5x and 2x
Link copied to clipboard
Link copied to clipboard
Current speed of reproduction. Options are 1x, 1.5x and 2x
Link copied to clipboard
Returns the current position of the audio track in milliseconds.
Link copied to clipboard
Subscribing for audio state changes for the audio of the hash
Link copied to clipboard
abstract fun registerOnProgressStateChange(audioHash: Int, onProgressDataChange: (ProgressData) -> Unit)
Subscribing for progress changes for the audio of the hash. The progress is updated every 50ms
Link copied to clipboard
Subscribing for speed changes for the audio of the hash.
Link copied to clipboard
Link copied to clipboard
Removes the current audio form the reproduction queue and removes the listeners
Link copied to clipboard
Removes the current audios form the reproduction queue and removes the listeners
Link copied to clipboard