gpt4 book ai didi

android - 使用 Android intent 启动 Spotify Radio

转载 作者:搜寻专家 更新时间:2023-11-01 09:02:08 25 4
gpt4 key购买 nike

我知道您可以使用以下方式开始播放特定歌曲:

String uri = "spotify:track:308p4aUi2JKGC0i750B2JM";
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
startActivity(intent);

我知道您可以通过搜索以下内容在桌面应用程序上启动广播 channel :

spotify:radio:track:308p4aUi2JKGC0i750B2JM

然而,当我尝试通过做类似的事情来启动 radio 时:

String uri = "spotify:radio:track:308p4aUi2JKGC0i750B2JM";
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
startActivity(intent);

什么都没发生...

有人知道怎么做吗?有可能吗?

谢谢

最佳答案

免责声明:我为 Spotify 工作

检查 Android 应用程序的源代码后,似乎启动 radio 是出于内部目的。换句话说,通过未发布的 URI 方案,该方案未发布是因为它可能会在版本之间发生变化。

我不确定这是否是为移动客户端计划的功能,不过我肯定会在内部询问一下。我会鼓励在社区论坛上发帖(他们确实会被阅读)也插入它。

更新:显然,使用内部 URI 方案的原因是,当为 Android 应用程序开发 radio 功能时,URI 方案尚未完全确定。该团队似乎有兴趣解决此问题,我已提交 JIRA 票证作为对他们的提醒。

关于android - 使用 Android intent 启动 Spotify Radio,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14328048/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com