Spotify API for ios: download , save , access tracks from ios spotify api

后端 未结 1 1616
無奈伤痛
無奈伤痛 2021-01-16 12:39

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

相关标签:
1条回答
  • 2021-01-16 13:25

    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.

    0 讨论(0)
提交回复
热议问题