2016-09-23 74 views
1

所以我一直拉着我的頭髮在這一個。我不能爲我的生活找出如何啓用洗牌或重複在SPTAudioStreamingController。我該怎麼做?我能找到的全部是:如何洗牌/重複Spotify SDK 0.21.0

let player = SPTAudioStreamingController.sharedInstance() 
player.playbackState.isShuffling = true 
player.playbackState.isRepeating = true 

不幸的是,這些都是隻能得到的。安裝者在哪裏?

回答

0

在測試25,你可以使用的方法setShuffle從類SPTAudioStreamingController

// get current state  
let state = player.playbackState.isShuffling 
// set shuffle state to opposite state 
player.setShuffle(!state, callback: nil)