dz0ny / leapcast

ChromeCast emulation app for any device
MIT License
1.4k stars 174 forks source link

Implement Chrome Cast v2 API #114

Closed werty1st closed 8 years ago

werty1st commented 10 years ago

Can someone provide any background information about the topic?

Implement Chrome Cast channel on port 8009 has this something to do with this? https://code.google.com/p/chromium/issues/detail?id=238819

can't an other browser engine be used? or can't the requestes be proxied and sent to different ports of the browser?

and isn't there an other problem with the certificate checking? https://github.com/dz0ny/leapcast/issues/96#issuecomment-37932415

more infos: https://github.com/jloutsenhizer/CR-Cast/wiki/Chromecast-Implementation-Documentation-WIP

dz0ny commented 10 years ago

On port 8009 is CastChannelService(https://code.google.com/p/chromium/codesearch#chromium/src/extensions/browser/api/cast_channel/cast_channel.proto&q=cast%20channel&sq=package:chromium&l=1) which is basically WebsocketServer that is used to start receiver apps. They use protobuf rather than JSON (https://code.google.com/p/chromium/codesearch#chromium/src/extensions/browser/api/cast_channel/cast_channel.proto&q=cast_channel.proto&sq=package:chromium&type=cs)

You may find more info studiying https://code.google.com/p/chromium/codesearch#chromium/src/chromecast/&ct=rc&cd=2&q=cast&sq=package:chromium (stub).

And for {port,address} reuse, leapcast already does that if user runs linux kernel 3.11+.

candrews commented 9 years ago

There's a pretty good write up of the v2 protocol at https://github.com/thibauts/node-castv2 - I'm still holding out hope that someday I can use a computer as a ChromeCast :)

werty1st commented 9 years ago

Maybe we could run the modified chromecast.apk from http://forum.xda-developers.com/hardware-hacking/chromecast/app-cast-receiver-app-android-t2900726 inside chrome: http://www.omgubuntu.co.uk/2014/09/install-android-apps-ubuntu-archon

i have installed the apk on my Minix Neo and it works at least with google music.