最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Is there a way to pause with the spotify api? - Stack Overflow

programmeradmin8浏览0评论

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

Documentation is here: /

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

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

Share Improve this question asked Jan 13, 2012 at 12:08 JenkoJenko 7892 gold badges8 silver badges11 bronze badges 1
  • I know this ment might be a little late, but I can't seem to figure it our. Where is the url to the library that allowed you to import all these objects and methods? I can't seem to find it. – idude Commented Jul 18, 2014 at 17:35
Add a ment  | 

1 Answer 1

Reset to default 7

Use this:

m.player.playing = 0;

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

发布评论

评论列表(0)

  1. 暂无评论