Open sanbor opened 6 years ago
My understanding of the Cast protocol is that Google holds the encryption keys necessary to host a Cast. Nearly anyone can create apps that send stuff to a Chromecast, but only Google and friends are able to make the Chromecast itself
TECHNICALLY, yes it should be possible. Checking that a Chromecast is valid is not actually mandatory for a Chromecast app. So it can probably be done, but it would only work with apps that don't check that it's a legit Chromecast, which is basically only going to be ones you create...
How hard it would be to actually implement a fake Chromecast might be another story though, I'm not sure there is enough info available to do it without a stupid amount of reverse engineering...
I hate google
For the record, I tried this project an I can stream YouTube from my phone to my Mac:
So it seems possible
According to what I read on that project, it only emulates a V1 chromecast, so it won't be recognized by many (most?) devices. It depends on what you want to do with it.
That's in fact true, it responds to the DIAL protocol
Also, what I found is that you still need to know the URLs of each chromecast app to support it. For instance, youtube's chrome app runs at https://www.youtube.com/tv , if you want to support spotify on your emulated chromecast you'd need to know their url for their chromecast app
Thanks for suggestion. The solution does work with pre-installed chromium on raspbian, but it's very slow. The even 320p is not fluid, specially when controls are present.
I suspect the system (raspberry/raspbian + chromium) can't use HW decoding (omxplayer-like) for website videos. I did notice "h264ify" is also preinstalled in chromium.
I wonder if it would be possible to setup a Raspberry Pi as a Chromecast server and send stuff to it from the mobile phone, etc.