Queue

Constructor

Queue(options: QueueOptions): Queue

Methods

add(track: Track): void

Add a track to the queue

addMany(tracks: any): void

Add multiple tracks to the queue

clear(): void

Clear the entire queue

current(): Track

Get the current track

getHistory():

Get queue history

getOptions(): QueueOptions

Get queue options

getTracks():

Get all tracks in the queue

isEmpty(): boolean

Check if the queue is empty

remove(index: number): Track

Remove a track at a specific index

reset(): void

Reset the queue position

setOptions(options: QueueOptions): void

Set queue options

shuffle(): void

Shuffle the queue

size(): number

Get the queue size