Proof of concept using python to talk to chromecast.
Uses google's protobuf library
Uses chromium's cast_channel.proto as seen at
http://svnsearch.org/svnsearch/repos/CHROMIUM/search?revision=227345&showPaths=all
Inspired by:
https://gist.github.com/TheCrazyT/11263599
https://github.com/thibauts/node-castv2 https://github.com/thibauts/node-castv2-client
https://github.com/vincentbernat/nodecastor
You can just use the cast_channel_pb2.py included here, or you can install google's protobuf processor from https://code.google.com/p/protobuf/
Dont forget to change the hard-coded IP to the IP of your cast device.
If you want to rebuild it, just run make
todo: integrate this with pychromecast