Is there a way to pause with the spotify api?

主宰稳场 提交于 2019-12-19 09:16:28

问题


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...


回答1:


Use this:

m.player.playing = 0;

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



来源:https://stackoverflow.com/questions/8850346/is-there-a-way-to-pause-with-the-spotify-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!