Tag: cocoalibspotify 2.0

CocoaLibSpotify几秒钟后播放崩溃

我遵循SimplePlayer示例项目,同时将其集成到我自己的testing项目中。 login和search曲目已经完美,但是当我尝试播放类似SimplePlayer的歌曲时,在EXC_BAD_ACCESS中的两个不同位置(请参见下图)上使用EXC_BAD_ACCESS播放1-2秒后会崩溃。 以下是开始播放的代码: SPTrack *track = [allTracks objectAtIndex:currentTrack]; [SPAsyncLoading waitUntilLoaded:track timeout:kSPAsyncLoadingDefaultTimeout then:^(NSArray *loadedItems, NSArray *notLoadedItems) { [playbackManager playTrack:track callback:^(NSError *error) { if (error) { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Can't play Spotify Track" message:[error localizedDescription] delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil]; [alert show]; } else { spotifyTrack = track; } }]; }]; 注意:我通过Singleton模式处理自定义类SpotifyPlayer歌曲的播放。 任何帮助将不胜感激!

离线播放列表使用CocoaLibSpotify

我在iOS应用程序中使用CocoaLibSpotify。 当我在markedForOfflinePlayback的实例SPPlaylist offlineStatus设置为YES时, offlineStatus几乎立即变为SP_PLAYLIST_OFFLINE_STATUS_YES用于播放列表和播放列表中的曲目。 但是, offlineDownloadProgress始终为0.0。 曲目显然没有被caching。 首先,caching它们需要更长的时间。 其次,当我将设备置于飞行模式并尝试播放标记为离线的曲目之一时,不播放audio。 有没有人有一个想法,我可能做错了?