OptionaldurationHint: AudioFocusDurationHint | AudioFocusManagerReadonlyandroidReadonlycurrentcurrent time
Set to true to enable console log output for debugging.
duration
ReadonlyeventsReadonlyiosVolume getter/setter
StaticObjOptionalplayer: anyOptionalflag: booleanAndroid Only Will set the playback speed for Android 23+, this is not available on lower Android APIs.
[number] - The speed of the playback.
Releases resources from the audio player.
Get the duration of the audio file playing.
Check if the audio is actively playing.
Pauses playing audio file.
Play audio file.
Starts playing audio file from local app files.
Resume audio player.
Seeks to specific time in seconds.
[number] - The position of the track duration to seek to.
Sets the audio focus manager for this player
new Audio Focus Manager
Stop playing audio file.
Determines differents behaviors by the system and the other application that previously held audio focus. See the different types of focus requests