Queue
note
This type is deducted from Spotify's internal usage. It may not be accurate and may change in the future.
The Queue
object contains a list of queuing tracks, history of played tracks, and current track metadata.
Spicetify.Queue
Return
const Queue: {
nextTracks: ProvidedTrack[];
prevTracks: ProvidedTrack[];
queueRevision: string;
track: ProvidedTrack;
};
Property | Type | Description |
---|---|---|
nextTracks | ProvidedTrack[] | List of next tracks. |
prevTracks | ProvidedTrack[] | List of previous tracks. |
queueRevision | string | Queue revision ID used internally by Spotify. |
track | ProvidedTrack | Current track. |
Usage
If you plan on developing extensions that need to access the current queue, you can use the Spicetify.Queue
object.
const queue = Spicetify.Queue;
const currentTrack = queue.track;