Jenko
Jenko

Reputation: 799

Is there a way to pause with the spotify api?

I want to be able to pause the current track but can't seem to find any method of doing so.

Documentation is here: http://developer.spotify.com/download/spotify-apps-api/reference/

Am using the following to play a track...

m.player.play(uri)

but there doesn't seem to be an equivalent m.player.pause(uri) or similar...

Upvotes: 4

Views: 5362

Answers (1)

Kristoffer Svanmark
Kristoffer Svanmark

Reputation: 778

Use this:

m.player.playing = 0;

Read here about the player: https://developer.spotify.com/docs/apps/api/0.1/f19ff300f8.html

Upvotes: 7

Related Questions