Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom Chromecast sender API - possible?

Tags:

google-cast

I'd like to examine the possibility of writing an unofficial Windows 8 (WinRT/Metro) sender API for Chromecast. The goal would be to allow Windows 8 Store apps roughly the same functionality of iOS / Android apps through the official sender API available for those platforms.

I've noticed that, although the inner workings of the API haven't really been exposed yet, some of the source code for the Chromecast device is available, and there's an unofficial emulator for the device out on Github (https://github.com/dz0ny/leapcast).

Is this possible, given how Chromecast devices seem to take commands directly from Google?

like image 832
lucas-j Avatar asked Aug 03 '13 17:08

lucas-j


People also ask

Can Chromecast control my receiver?

You can configure your Chromecast Voice Remote to control devices like your TV, receiver or soundbar by setting up the volume, power and input buttons. If you didn't configure these buttons when you first set up your Chromecast with Google TV, you can set them up later in Chromecast settings.

What is cast API?

This is a Java library that lets you connect to and communicate with "cast applications" running on Google cast devices like ChromeCast dongles. It does so without using any of the Google frameworks, which are limited to Android, iOS and the Chrome browser.


1 Answers

ChromeCast is using a proprietary protocol called RAMP (Remote Application Media Protocol) to do media control. Once you have setup your ChromeCast device for development, the device will open a port for remote Chrome debugging. Open Chrome at your ChromeCast device IP address port 9222: http://192.168.0.x:9222/

You should see a page with a link to the receiver page of the currently running ChromeCast app. Click the link and then use Chrome developer tools on that page. Take a look at the network and console tabs to see the RAMP commands.

I have open sourced an Android app that shows you how to discover ChromeCast devices and setup the Websocket connection to handle the RAMP commands: https://github.com/entertailion/DIAL

like image 153
Leon Nicholls Avatar answered Oct 14 '22 22:10

Leon Nicholls