Reputation: 4733
I'm not able to pause the track.
both -playing property on SPSession & -setIsPlaying property on SPPlaybackMAnager already provides this functionality but it all cause to stop a song not pause the song.
What should I do to pause the running track?
Upvotes: 3
Views: 488
Reputation: 18776
Only use SPPlaybackManager
's controls if you use it at all.
Set playing
to false
to pause playback, playing
to true
to resume. Please note that this is for playing Spotify music in your own application, not controlling the Spotify client.
See the "Simple Player" examples that come with CocoaLibSpotify to see how to do playback.
Upvotes: 7