Open philhug opened 10 years ago
Agreed, this would be fantastic. That said, I'm unsure how to go about it. I'm not sure if it's as simple as sending an HTTP request to the Chromecast? I thought Chromecast used some proprietary protocol to communicate between devices and Chromecasts, but I'm unclear about the low-level details.
Any help with this from the community would be incredibly appreciated!
castv2 seems to support launching the greenscreen app on an chromecast. At least I was able to start it: https://www.npmjs.org/package/castv2
I guess, if you want to integrate it into greenscreen, this would be a separate server process that scans for available chromecasts and put them into the DB as "discovered" and then let the user enable them on the web interface.
Ah, that's awesome! Lots of possibilities there. Assuming that the server is running on the same network as the Chromecasts, we could completely do away with the janky Chromecast Chrome Extension and any client device could connect to the Chromecasts through the connected server.
Thanks for this lead, this could be a significant improvement!
+1 for this, would love to see greenscreen launching automatically when the TV is on :)
+1 It looks like @diequeiroz https://github.com/groupon/greenscreen/issues/33 also took a good stab at this. With Diego's code, I can start the app on a named chromcast. It's in python. An out-of-band cron job could at least jam all of the chromecasts regularly as belt and suspenders until this functionality was added in. Of course, the Chromecast should allow the default application to be set.
This code looks fancier as looks like it might be able to find and control all chromecasts on the network.
The green screen app should be started and restarted automatically, when its not running. I guess this means finding the chromecast using mdns and sending a http request to launch the app.