-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNOTES
More file actions
13 lines (12 loc) · 718 Bytes
/
NOTES
File metadata and controls
13 lines (12 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
Main stuff to look for when working with libspotify :
- it's not because we have created a track/album/playlist/... that it is loaded
- it's not because we have a sucessfully loaded track that we can play it
For this simple player, I should event not have though about permitting multiple
uris as arguments. The code works as follow :
- put all uris in state->urisToPlay
- for each uri, try to load all the tracks of its content, and add them to
tracklist
- when effectivly adding a track to tracklist, checking that it is available,
otherwise forget about it
- when tracklist has been populated, forget everything about uris, playlist,
albums, and only work with the tracks loaded in tracklist.