Search code examples
google-chrome-appchromecastgoogle-cast

Using Chromecast with packaged Chrome apps


I'm working to create a sender app in Chrome (34.0.1847.137, on 10.9), but rather than merely be a standard webpage, I'd like to package it into a Chrome App.

All of my code works fine tested as a standard webpage, but when packaged as an app, because there is no Chromecast button (normally next to address bar), it seems impossible to let the user even know that it's there even though through the console I can see that a receiver was identified.

Is there a way to reveal that button to the user or (even better) programmatically launch the receiver app on the Chromecast without needing the user to press any buttons?


Solution

  • Unfortunately, the Chromecast API isn't compatible with packaged apps quite yet. It's a known issue that's being worked on so hopefully it won't be a problem for much longer! In the mean time, you can track this Chrome bug to stay in the loop:

    https://code.google.com/p/chromium/issues/detail?id=287254