返回自定义 Google Home 应用上的播放列表

Returning playlists on custom Google Home app

我制作了一个网络应用程序,允许教堂将他们在星期天正在播放的歌曲制作 YouTube 播放列表。

我写了一个 Google Assistant Intent,它接受诸如“在我的电视上播放我们这周末正在播放的歌曲”之类的输入。

此意图使用网络钩子,要求我的服务器查找相关教会的歌曲和赞美诗。我的服务器成功 returns 一个 YouTube 播放列表的 URL。

但是,它只是读回播放列表 URL,因为我不知道如何与在 Chromecast 上显示 URL 的操作进行通信。

询问Google支持求助时,被告知:

Yes, there is a way to send a YouTube URL to Chromecast, or a song-name/artist-name to Google Play or Spotify using a webhook. If you trigger intents via events (as described at https://api.ai/docs/events#invoking_event_from_webhook), you should be able to see a response defined in such intent in the Actions on Google test console. It may look like this:

User via test console -> Query request -> Intent A -> Webhook -> Web service logic -> Event is sent back to API.AI -> Intent B -> Response defined in Intent B is shown in test console.

Let us know if this helps or if it's different from what you are trying to accomplish.

遗憾的是,我无法解读上述引用的含义。

谢谢。

更新自GOOGLE:

Hi Jason,

Sorry you can't use your app to interact with inbuilt music apps. Alternate option is to provide a link to the user in the Google Assistant that opens the app a user wants to use. Hope this helps!

Thanks, Lalitha Actions on Google Support Team

因此,为了回答您有关 Chromecast 的具体问题,该功能不适用于第三方应用程序。您将无法直接播放音乐。