Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Chromecast Unofficial API / Information

OP bradynapier

19th June 2014, 10:15 PM   |  #1  
OP Member
Thanks Meter: 0
 
47 posts
Join Date:Joined: Jun 2010
I have found random documents going over some of the raw curl commands that can be sent to chromecast, but it is by no means complete and various people saying they've been successful in doing things but not sharing how. Is there anywhere, or can we start a conversation to go over full details on this? I am hoping to build a two-way module for a home automation system that shows what is playing and other information.

Here is what I have so ar of-which not all of them are working for me yet.

get device information xml:
curl http://10.0.1.2:8008/ssdp/device-desc.xml

get detailed device information json:
curl http://10.0.1.2:8008/setup/eureka_info?options=detail

scan for available wifi:
curl http://10.0.1.2:8008/setup/scan_results

get supported time zones:
curl http://10.0.1.2:8008/setup/supported_timezones

get info about current app:
curl -H “Content-Type: application/json” http://10.0.1.2:8008/apps/YouTube -X GET

send youtube video to chromecast:
curl -H “Content-Type: application/json” http://10.0.1.2:8008/apps/YouTube -X POST -d ‘v=oHg5SJYRHA0′

kill current running app:
curl -H “Content-Type: application/json” http://10.0.1.2:8008/apps/YouTube -X DELETE

reboot the chromecast dongle:
curl -H “Content-Type: application/json” http://10.0.1.2:8008/setup/reboot -d ‘{“params”:”now”}’ -X POST

factory default reset the chromecast dongle:
curl -H “Content-Type: application/json” http://10.0.1.2:8008/setup/reboot -d ‘{“params”:”fdr”}’ -X POST
20th June 2014, 06:13 PM   |  #2  
Member
somewhere in good ol' Germany
Thanks Meter: 597
 
52 posts
Join Date:Joined: Nov 2010
If you're looking for a comprehensive writeup of the Cast protocol take a look here:

https://github.com/jloutsenhizer/CR-...umentation-WIP
5th July 2014, 11:52 AM   |  #3  
Junior Member
Thanks Meter: 0
 
9 posts
Join Date:Joined: Apr 2010
has anyone made any further discoveries than this?

I'm particularly interested in implementing a play/pause capability, and I notice one developer mentioned his android remote app has this capablility, but did not mention exactly how it was achieved.

I'm assuming the use of the Ramp protocol will work on the youtube app still - so in order to play/pause I'd just need to implement that method in my app? Before I go down that route though, i wondered if anyone knows if that method still works, at least with the youtube app as of july 2014?
13th December 2014, 06:39 PM   |  #4  
Junior Member
Thanks Meter: 0
 
9 posts
Join Date:Joined: Apr 2010
can anyone confirm if this method still works? I'm wondering if google has changed something here, as the video of a youtube vid sent the chromecast is no longer displayed since the 'guest feature' update. Video's sent to the chromecast this way now will only play audio with a full screen youtube logo on screen. Anyone else see this, and have any way around it yet?
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes