I'm trying to create a device that allows me to tell youtube videos to play through chromecast from an arbitrary client. In my case, the CURL client runs on Arduino.
I hit the wall quite early. I see that the SDK is available for client senders on Android, iOS, and Chrome Apps. However, is there any published specification (or reverse engineering) for how to request media from the youtube listener itself?
I cannot send special requests to chromecast with a request for a YouTube video. Before starting the next step: fireup wireshark and see if I can reprogram how the YouTube app on my phone does this, I was hoping the community could help.
I found an example that no longer works (perhaps due to a later FW on my chrome device, this project is> 3 million old)
https://github.com/entertailion/ChromeCast-Arduino
So, in my case, I am trying to use both of the following URLs:
http:
http:
By posting this:
POST /apps/YouTube HTTP/1.1
Host: www.arduino.cc
User-Agent: arduino-ethernet
Connection: close
Content-Type: application/x-www-form-urlencoded
Content-Length: 12
v=GWXLPu8Ky9k
But I just return 404 errors or the length of the content: 0 responses and chromecast do not seem to do anything else (remains on the youtube pop-up screen or on the desktop).
So, with all this said, any ideas on how I can communicate directly (from the client to Chromecast via HTTP POST) using the youtube receiver?
source
share