user1182379
user1182379

Reputation: 21

Get next tracks from queue through Spotify App API

Is there anyway to get the next tracks from the player queue?

I get the current track using:

var player = models.player;
var playerTrackInfo = player.track;

But I can't find the way to get the context, or the next track.

Upvotes: 0

Views: 3638

Answers (1)

mager
mager

Reputation: 4863

The API doesn't support reading the next-playing track. The Player model does let you skip to the next track though: https://developer.spotify.com/docs/apps/api/1.0/api-models-player.html

A workaround could be to construct a temporary playlist and then inspect the next track programmatically.

Upvotes: 2

Related Questions