2012-05-24 21 views
1

可能重複:
Is there a way to pause with the spotify api?如何恢復歌曲?

我工作的Spotify的應用程序內的應用程序。

我喜歡實現播放,暫停和恢復功能。

https://developer.spotify.com/technologies/apps/docs/beta/f19ff300f8.html

指示我可以發揮使用播放()方法的一首歌,我可以停止使用播放(假)二傳手的歌曲。

我找不到一種方法暫停然後恢復。

是否有方法或破解或解決方法?

+2

http://stackoverflow.com/questions/8850346/is-there-a-way-to-pause-with-the-spotify-api –

+0

@cornbreadninja //很棒!謝謝!我以爲那停止了一首歌。 – Moon

+0

不客氣! –

回答

2

m.player.playing = false;暫停。

m.player.playing = true;恢復。