Reputation: 422
I loaded the playlist container and then got the pointers to each playlist, and from the playlist pointers (sp_playlist *) to get the name and URI of each playlist. But the result shows not all the playlist name and URI can be retrieved. What types of playlist metadata does playlist container provide?
Also, is playlist stored in local cache? Do I have to wait for the playlist to be loaded to the cache?
Thanks.
Upvotes: 0
Views: 915
Reputation: 18776
The playlist container contains no playlist metadata — only a list of playlist pointers. You need to wait for each playlist to load before its name is available. Also, be aware that the playlist container will have folder markers in there too, which don't have names at all. You can check that with sp_playlistcontainer_playlist_type()
.
Playlists are indeed stored in the local cache, as long as you log out correctly and wait for the logout completion callback before terminating your process.
Upvotes: 2