I’m trying to understand as much functionality of the libspotify examples as possible. But I don’t know how the tracks/playlists are synchronized.
I used “jukebox” example to play a playlist with 5 tracks. At the same time, I used “spshell” example to add a new track to the playlist with the index different from the current playing track. “spshell” shows the track is added successfully. But “jukebox” does not play the new track even after being restarted. Did I miss something?
Thanks.
Sometimes it can take a little while before the playlist is synced to the backend. A good way to debug this is to have the playlist open in the Spotify client at the same time you’re using spshell – you can log into Spotify with the same account from as many places as you like – only playback is limited to one application at a time.
If spshell isn’t picking up the new track in the playlist in the next launch, let it sit a little while to sync with the playlist service before viewing/playing the tracks.
Playlist sync is normally pretty fast, but sometimes the playlist system gets put under heavy load and it can take a little while.