Constructs an instance of the AudioPlayer class.
Logger instance for the AudioPlayer class.
Uses: tslog
The function that is logging
The log message
Callback function triggered when a track ends.
Currently selected audio track.
List of audio tracks managed by the player.
Adds multiple tracks to the track list.
An array of track details to be added.
Additional options for track addition.
Set to true
to select the first added track, false
by default.
This function adds multiple tracks to the track list and optionally selects one of them as the currently playing track.
Adds a new track to the track list.
Details of the new track.
Additional options for track addition.
Set to true
to select the added track, false
by default.
The newly created AudioTrack instance.
Private
createCreates a new AudioTrack instance based on provided track details.
Details for the new track.
The created AudioTrack instance.
Private
findFinds a track in the track list by its URL.
The URL of the track.
The found AudioTrack instance, or undefined
if not found.
Retrieves the next track in the track list if available.
The next track or null
if not available.
Retrieves the previous track in the track list if available.
The previous track or null
if not available.
Retrieves the currently selected track.
The currently selected track.
Retrieves a copy of the track list without the 'howl' property.
A copy of the track list.
Private
removePrivate
selectPlays the specified track.
The track to be played.
Generated using TypeDoc
AudioPlayer class for managing audio playback, track list and track information.