Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pause the running track

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?

like image 690
Niru Mukund Shah Avatar asked May 11 '26 14:05

Niru Mukund Shah


1 Answers

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.

like image 159
iKenndac Avatar answered May 17 '26 15:05

iKenndac