Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top