iOS版Spotify SDK,如何清除playerQueue
我是Spotify SDK的新手 我刚刚实现了iOS版Spotify SDK,如何清除playerQueue,ios,spotify,spotify-app,spotify-queue,Ios,Spotify,Spotify App,Spotify Queue,我是Spotify SDK的新手 我刚刚实现了auth,login,并获得了一些跟踪URI。这很有效。 但是,我找不到当前正在播放的重置或清除音乐队列 我认为[SPTAudioStreamingController queueURIs:clearQueue:callback:]是我需要的 但是,在我使用SDK beta6和iOS8的环境中,它只会将曲目添加到队列的末尾,而不会清除当前队列 //Reset current queue and replace it with new URIs? [s
auth
,login
,并获得了一些跟踪URI。这很有效。
但是,我找不到当前正在播放的重置或清除音乐队列
我认为[SPTAudioStreamingController queueURIs:clearQueue:callback:]代码>是我需要的
但是,在我使用SDK beta6和iOS8的环境中,它只会将曲目添加到队列的末尾,而不会清除当前队列
//Reset current queue and replace it with new URIs?
[self.player queueURIs:uris clearQueue:YES callback:nil];
我遗漏了什么吗?您可以简单地使用另一个函数,该函数将所有播放曲目替换为给定的曲目
[self.player replaceURIs:tracks withCurrentTrack:0 callback:^(NSError *error) {
if(error){
NSLog(@"*** Error occurred while trying replace playing track %@", error);
return;
}
}];