AudioPlayerController
A handle that is used to control audio playback,including playing, pausing, resuming, stopping an audio, and checking the playback status of an audio.
Properties
Functions
Link copied to clipboard
fun fade(targetVolume: Float = 1.0f, duration: Long, fadeMode: AudioInterpolatorType = AudioInterpolatorType.CUBIC): Boolean
Fade the audio to the specified volume over a specified duration.
Link copied to clipboard
Gets the current playback position of the audio file in milliseconds.
Link copied to clipboard
Gets the total duration of the audio file in milliseconds.
Link copied to clipboard
Gets the current playback speed for the audio.
Link copied to clipboard
Checks if an audio is finished playing or not.
Link copied to clipboard
Sets the playback speed for the audio.