Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个播放列表,我想按顺序播放曲目,但是每次加载新曲目时,我都想调用一个函数。我将如何去听这个活动?
SPPlaybackManagerCocoaLibSpotify 中的播放类,不会自动按顺序播放曲目,因此您必须手动告诉它每次播放。由于您正在管理它,您已经知道新曲目何时开始播放。
SPPlaybackManager
此外,SPPlaybackManagerDelegate还有一个方法-playbackManagerWillStartPlayingAudio:,可以让您知道音频何时开始击中扬声器。
SPPlaybackManagerDelegate
-playbackManagerWillStartPlayingAudio: