Closed stevenpetryk closed 9 years ago
Following the example code on the README, starting a track, and then running the following:
spotify.getState(function(err, state) { console.log(state) });
Returns:
{ track_id: 'spotify:track:3AhXZa8sUQht0UEdBJgpGc', volume: 58, position: 0, state: 'playing' }
It continues to return 0 as the position until the track has been paused. Only then does it get updated to the current position.
0
Just saw this on the Spotify Developer website:
Due to a known issue it is not currently possible to retrieve the player position or the current track’s album art.
Following the example code on the README, starting a track, and then running the following:
Returns:
It continues to return
0
as the position until the track has been paused. Only then does it get updated to the current position.