简体   繁体   English

从您自己的应用程序控制 Spotify

[英]Control Spotify from your own app

I want to put in my app just one PLAY button and when user will press on that button, to play the song directly in Spotify.我只想在我的应用程序中放置一个播放按钮,当用户按下该按钮时,可以直接在 Spotify 中播放歌曲。 It will like a controller, so I can switch songs in Spotify from my own app.它就像一个控制器,所以我可以从我自己的应用程序中切换 Spotify 中的歌曲。

Now I created something, but it plays on my own app.现在我创建了一些东西,但它在我自己的应用程序上播放。 Is there any ways to control my music streaming in spotify via my own app?有什么方法可以通过我自己的应用程序在 Spotify 中控制我的音乐流吗?

For example I press "Next song" and it switches in Spotify app to the next song.例如,我按下“下一首歌曲”,它会在 Spotify 应用程序中切换到下一首歌曲。

I hope I could explain what I want, if not - please ask me我希望我能解释我想要什么,如果没有 - 请问我

URL Schemes are the only way to communicate between apps. URL Schemes 是应用程序之间通信的唯一方式。 It is not possible to launch non arbitrary apps.无法启动非任意应用程序。

Then you need to use Spotifys API and they do not currently have any support for that.然后你需要使用Spotifys API ,他们目前没有任何支持。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM