I would like to know whether downloading tracks to the iphone / ipod / ipad devices is possible using the spotify ios api (CocoaLibSpotify IOS Library). If so I also need to
You can't simply download Spotify tracks as, say, MP3 files or whatever for independent playback.
However, you can have the library cache tracks for offline playback later, as long as the user stays logged into CocoaLibSpotify, just like the iOS Spotify client does.
SPPlaylist
has the markedForOfflinePlayback
property for enabling offline access, then the offlineDownloadProgress
and offlineStatus
properties of the playlist give more information.
CocoaLibSpotify comes with a Mac sample application that caches playlists for offline playback to see how it works. The API is available and the same on both Mac OS X and iOS versions of CocoaLibSpotify.