Is there a way to pause with the spotify api?
-
28-10-2019 - |
Question
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...
Solution
Use this:
m.player.playing = 0;
Read here about the player: https://developer.spotify.com/docs/apps/api/0.1/f19ff300f8.html
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow