Ask Google home to play a mp4 video on my chromecast











up vote
1
down vote

favorite












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










share|improve this question


























    up vote
    1
    down vote

    favorite












    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










    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      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










      share|improve this question













      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







      video dialogflow chromecast actions-on-google google-home






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 19 at 13:16









      mcanzerini

      505




      505
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          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.






          share|improve this answer





















          • 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 would work ...
            – mcanzerini
            Nov 19 at 13:49










          • Google Homes don't run local code. They only send responses from a remote server.
            – Nick Felker
            Nov 19 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 ?
            – mcanzerini
            Nov 20 at 9: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 at 18:17











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53375477%2fask-google-home-to-play-a-mp4-video-on-my-chromecast%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote













          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.






          share|improve this answer





















          • 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 would work ...
            – mcanzerini
            Nov 19 at 13:49










          • Google Homes don't run local code. They only send responses from a remote server.
            – Nick Felker
            Nov 19 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 ?
            – mcanzerini
            Nov 20 at 9: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 at 18:17















          up vote
          1
          down vote













          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.






          share|improve this answer





















          • 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 would work ...
            – mcanzerini
            Nov 19 at 13:49










          • Google Homes don't run local code. They only send responses from a remote server.
            – Nick Felker
            Nov 19 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 ?
            – mcanzerini
            Nov 20 at 9: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 at 18:17













          up vote
          1
          down vote










          up vote
          1
          down vote









          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.






          share|improve this answer












          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.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 19 at 13:22









          Prisoner

          30.9k22552




          30.9k22552












          • 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 would work ...
            – mcanzerini
            Nov 19 at 13:49










          • Google Homes don't run local code. They only send responses from a remote server.
            – Nick Felker
            Nov 19 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 ?
            – mcanzerini
            Nov 20 at 9: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 at 18:17


















          • 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 would work ...
            – mcanzerini
            Nov 19 at 13:49










          • Google Homes don't run local code. They only send responses from a remote server.
            – Nick Felker
            Nov 19 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 ?
            – mcanzerini
            Nov 20 at 9: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 at 18:17
















          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 would work ...
          – mcanzerini
          Nov 19 at 13:49




          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 would work ...
          – mcanzerini
          Nov 19 at 13:49












          Google Homes don't run local code. They only send responses from a remote server.
          – Nick Felker
          Nov 19 at 19:31




          Google Homes don't run local code. They only send responses from a remote server.
          – Nick Felker
          Nov 19 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 ?
          – mcanzerini
          Nov 20 at 9:06




          @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 ?
          – mcanzerini
          Nov 20 at 9: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 at 18:17




          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 at 18:17


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53375477%2fask-google-home-to-play-a-mp4-video-on-my-chromecast%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

          Alcedinidae

          RAC Tourist Trophy