I want to be able to pause the current track, but cannot find any way to do this.
The documentation is here: http://developer.spotify.com/download/spotify-apps-api/reference/
I use the following to play the track ...
m.player.play(uri)
but there seems to be no equivalent of m.player.pause(uri) or the like ...
m.player.pause(uri)
Use this:
m.player.playing = 0;
Read here about the player: https://developer.spotify.com/docs/apps/api/0.1/f19ff300f8.html
Source: https://habr.com/ru/post/1390820/More articles:How can I make tabs in pygtk close? - pythonUsing third-party libraries in Python - pythonAdditional content at the end of a PHP and XML document - xmlObjective-C - The delegate subclass in the subclass - oopEquivalent to find_each in DataMapper - ruby | fooobar.comFileReader API: how to read files synchronously - javascriptnested transactions are returned, although TransactionScopeOption.Suppress is c #How can you reuse the style throughout your WPF application? - .netHow to create a widget that looks like a carousel? - spotifyUIScrollView - scroll indicator with white dots (for example, on the home screen) - iosAll Articles