Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在我自己的 android 应用程序中保存一首歌曲和艺术家的名字,并将字符串传递给 spotify android 应用程序来播放。如何将字符串传递给 Spotify?
如果您向 Spotify 应用程序发送搜索意图(即,spotify:search:whatever或http://open.spotify.com/search/whatever),您应该能够让应用程序播放内容。
spotify:search:whatever
http://open.spotify.com/search/whatever
要同时搜索艺术家和曲目,您的 URI 应如下所示:
spotify:search:artist%3Atigerskin%20track%3Astella
如果您知道曲目的特定 URI,那么您可以让 spotify 直接播放它,这比使用搜索意图要容易得多。