1

What I have :

  • A Google Home
  • A chromecast on same LAN
  • A Personal Video Library accessible by a public API

I want to develop a custom Google Action for my Google Home.

I want to be able to get some random video and play it on my chromecast.

For instance : 'Ok Google, play random video'

In DialogFlow, I can easily get the matching intent, find a MP4 video, etc.

But i'm stuck when I want to tell my Google Home to play that video on my Chromecast.

Is there any way to give back to Google Home a rich response (with my mp4 video url) and tell it to play the video on my local chromecast ?

Don't know if this is possible

Thanks !

MC

godo57
  • 508
  • 2
  • 24

1 Answers1

1

There is currently no way to create an Action that can start an application on a Cast device. If you are looking to create video streaming apps that use the existing command set (such as what Netflix does), you need to partner directly with Google.

Prisoner
  • 49,922
  • 7
  • 53
  • 105
  • Thanks for your answer ! I think this is a big lack of features ... When we speak to our Google Home we cannot handle the raw message in a server that is hosted in our LAN ? This [lib](https://github.com/balloob/pychromecast) would work ... – godo57 Nov 19 '18 at 13:49
  • Google Homes don't run local code. They only send responses from a remote server. – Nick Felker Nov 19 '18 at 19:31
  • @NickFelker : It's more like "Google Assistants" don't run local code. If you deploy your action in a smartphone, how could you achieve that ? – godo57 Nov 20 '18 at 09:06
  • This is true. The Actions on Google platform doesn't run local code on any surface, so even a smartphone wouldn't be able to directly do anything on your LAN. – Nick Felker Nov 20 '18 at 18:17