Queue

Handles the list of tracks to be played in a Player.

Methods

add(track)track: Track

Adds a track to the end of the queue.

remove(index)index: number

Removes a track at the specified index.

clear()

Removes all tracks from the queue.

shuffle()

Randomly reorders the tracks in the queue.