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

最后都变了- 提交于 2019-12-01 12:44:19

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!