Chromecast and Curl issue - Google Chromecast

hi,
I'm trying to use curl to play you tube videos with a post command e.g.
curl -v -H "Content-Type: application/json" 192.168.0.XX:8008/apps/YouTube -X POST -d ‘v=XXXXXX′
I've checked my ip address is correct, and that the v='XXX'' is a valid youtube video, but the YouTube app launches on the chromecast, flickers for a moment before refusing to play the video. Curl returns successfully without any errors. Has this been blocked on the chromecast now, or is there something I'm missing to get this working?
any pointers gratefully recieved.

Nevermind

got it working. no matter

offyoutoddle said:
got it working. no matter
Click to expand...
Click to collapse
What was the issue?

bhiga said:
What was the issue?
Click to expand...
Click to collapse
i stopped using curl, and just tried it in my app instead and it works.

Related

Direct streaming from vimeo to chromecast

Direct streaming to Chromecast without using the tab mirror option
1) First find you favorite vimeo URL
for example: I choose this http://vimeo.com/69627704
2) Go to http://keepvid.com/ (This service and other like it can resolve URL from other video site too, not just vimeo)
3) paste in the vimeo address and hit download. You will be presented with 2 links obviously choose the 720p one if possible. Right click on it and copy url it should be something really long like this http://pdl.vimeocdn.com/18706/952/1...n=1375283992_18627ba2bd4d1204fdaacfc695607cc9
4) go to http://googlecast.github.io/cast-chrome/ (I take no credit for this site whomever did it was great)
5) Drop down activity type to HTML5 video play back and paste in the really long URL
6) Hit play (the video should play now, but ignore it and scroll down fast)
7) YOU have to scroll down fast to the bottom on the page and hit the name of your chromecast fast (then your TV will go black screen for a bit seems like a long time 5 secs, then it should play on your TV).
I believe this method work with other video service too as long as you can get their true URL, basically you just need an mp4 file or something URL
Vimeo is already working on an app. It appears that once the SDK goes out of preview there will be a whole glut of casting apps.
Just found the method to work with putlocker as well. When playing putlocker video, to the bottom right it allow you to "download" the video, I just right click and copy the link and past it directly to step 4 above. And it works
I combined http://googlecast.github.io/cast-chrome/ with an apache instance on my macbook air to natively stream an .mp4 to the chromecast, no transcoding or webrtc.
Can the video be paused / resumed?
Sent from my Galaxy Nexus using Tapatalk 4 Beta
even 720 tab casting is good with my setup but for some reason i couldn't get OP solution to work smooth enough. it pauses rather than stutters.
cmstlist said:
Can the video be paused / resumed?
Sent from my Galaxy Nexus using Tapatalk 4 Beta
Click to expand...
Click to collapse
Yep there is a set of control at the bottom when you click on the chromecast to activate it. You can pause stop volume... I been having good luck with multiple video providers... Best of luck to all until we can get official support. The trick is all about the true url of the streaming video and the github website still wondering who made that site. I am trying to study the code, but I am not white listed so it is limited
Sent from my Nexus 7 using Tapatalk HD
sort of off topic question:
does it cast the highest resolution available when used natively? for example youtube, does it send 1080 when the video is available in 720 and 1080? i hope they would offer more bitrate/resolution settings in the future.
Sent from my One S using xda app-developers app
mannequin said:
sort of off topic question:
does it cast the highest resolution available when used natively? for example youtube, does it send 1080 when the video is available in 720 and 1080? i hope they would offer more bitrate/resolution settings in the future.
Sent from my One S using xda app-developers app
Click to expand...
Click to collapse
From what I see, as long as your source from Internet has 1080p then yeah. This is direct streaming, so it work like those YouTube 1080p video directly to Chromecast. However I think you would need pretty good Internet for that. I always have trouble with smooth 1080p streaming even on computer.
Sent from my Nexus 7 using Tapatalk 4
python2121 said:
I combined http://googlecast.github.io/cast-chrome/ with an apache instance on my macbook air to natively stream an .mp4 to the chromecast, no transcoding or webrtc.
Click to expand...
Click to collapse
Sounds very cool, care to share how you did it?
pmgreen said:
Sounds very cool, care to share how you did it?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2388915
I know this is a really old post but does this still work or is there an alternative?
Nothing appears under "Select a device to launch this activity"
Flatuglance said:
I know this is a really old post but does this still work or is there an alternative?
Nothing appears under "Select a device to launch this activity"
Click to expand...
Click to collapse
No, it doesn't work any more. Google disabled all of these unofficial casting apps by introducing a "whitelist" of allowed apps in their August firmware update. That's one of the reasons why we've dubbed it the Google CrippledCast in our house.
DJames1 said:
No, it doesn't work any more. Google disabled all of these unofficial casting apps by introducing a "whitelist" of allowed apps in their August firmware update. That's one of the reasons why we've dubbed it the Google CrippledCast in our house.
Click to expand...
Click to collapse
...and @Kyonz developed KyoCast to have a custom whitelist, and Team Eureka released Eureka-ROM which lets you use Google's whitelist, Team Eureka's whitelist (which allows things like AllCast, fling and a few other third-party apps), or a completely custom list of your own.
Of course all of that requires root, which isn't possible for newer Chromecasts...
you can use curl to play video directly on chromecast
If you have whitelisted device (via Kyocast/ EurekaROM) you can play supported video formats using curl directly to chromecast.
curl -H "Content-Type: application/json" http://<your_chromecast_ipaddress>:8008/apps/Fling -X POST -d "<your_video_link>"
where <your_video_link> is the video link from internet.
<your_chromecast_ipaddress> is the ip address of your chromecast
Still no direct Chromecast support in the Vimeo player, but if you have Plex, the Vimeo channel in Plex works with the Chromecast.

[Q] is there any way to launch chrome on a chromecast from the shell?

I've got a rooted chromecast and I want to launch a browser and load a specific url instead of streaming a tab from another device. Normally you would use soemething like:
am start -a android.intent.action.VIEW -n com.android.chrome/.Main -d http://myurl.com
to launch chrome with a specific url on an android device...
but 'am' doesn't exist on the chromecast
there is a 'start' command available though....
is there any way to launch chrome on a chromecast from the shell?
WildSatchmo said:
I've got a rooted chromecast and I want to launch a browser and load a specific url instead of streaming a tab from another device. Normally you would use soemething like:
am start -a android.intent.action.VIEW -n com.android.chrome/.Main -d http://myurl.com
to launch chrome with a specific url on an android device...
but 'am' doesn't exist on the chromecast
there is a 'start' command available though....
is there any way to launch chrome on a chromecast from the shell?
Click to expand...
Click to collapse
Not as far as I know. The stock OS is not Android and lacks Android's concepts of Apps and Intents. Instead, Chrome is launched as part of a monolithic binary, /system/chrome/content_shell, at boot, which handles both the page rendering and the Google Cast protocol implementation.

Dailymotion

Has this been updated for chromecast? Could someone post the apk?
Try the beta: https://plus.google.com/communities/112047643386078211133
It's currently 4.0.0.2, build date of 1/30/14, so maybe? I'd check myself, but I'm away from my CC.
muchtall said:
Try the beta: https://plus.google.com/communities/112047643386078211133
It's currently 4.0.0.2, build date of 1/30/14, so maybe? I'd check myself, but I'm away from my CC.
Click to expand...
Click to collapse
I can't get on that page.
Can someone just say if daily motion has been updated on the US play store for chromecast.
This website says it has. http://androidspin.com/2014/02/05/new-chromecast-supported-apps-go-live-play-store/
Never mind. They fixed it
Sent from my Nexus 10
Can someone just say yes or no.
Just installed it.
Doesn't yet have an option to cast.
Also, the build on PS is from 23 January...
bungadudu said:
Just installed it.
Doesn't yet have an option to cast.
Also, the build on PS is from 23 January...
Click to expand...
Click to collapse
Ok thanks.
VidCast supposedly works with Dailymotion.
DJames1 said:
VidCast supposedly works with Dailymotion.
Click to expand...
Click to collapse
Confirmed working, thanks!
mdamaged said:
Confirmed working, thanks!
Click to expand...
Click to collapse
Hmm I have installed and reinstalled chrome on my win7 x64 but for some reason the chromecast web-based apps don't work (neither the Cagecast nor the Vidcast bookmarklet). When I try to cast the tab on those pages it stays in a loop "Casting to Chromecast" and nothing happens. Can someone help me?
sirdashadow said:
Hmm I have installed and reinstalled chrome on my win7 x64 but for some reason the chromecast web-based apps don't work (neither the Cagecast nor the Vidcast bookmarklet). When I try to cast the tab on those pages it stays in a loop "Casting to Chromecast" and nothing happens. Can someone help me?
Click to expand...
Click to collapse
Dunno, using the exact same setup and it works.
Here is how I do it: Goto the dailymotion video page, then clicked the VidCast bookmarklet, then the page loaded with its overlay, and told me to click Play, which I did, then it automatically dropped down the google cast extension (which you need), then I just clicked on my Chromecast in that drop down, and it played on my CC.
sirdashadow said:
Hmm I have installed and reinstalled chrome on my win7 x64 but for some reason the chromecast web-based apps don't work (neither the Cagecast nor the Vidcast bookmarklet). When I try to cast the tab on those pages it stays in a loop "Casting to Chromecast" and nothing happens. Can someone help me?
Click to expand...
Click to collapse
Make sure you have the latest versions of Chrome and the Chromecast plugin.
If still no good, try disabling the Flash plugin (under about: plugins).
DJames1 said:
Make sure you have the latest versions of Chrome and the Chromecast plugin.
If still no good, try disabling the Flash plugin (under about: plugins).
Click to expand...
Click to collapse
did all that, no joy, I tried clicking on both the cast button in the video window and the browser. It just loops on "Casting....."
You can use daileymotion android app and share the video with Vget and then stream with vget to bubbleupnp that uses Avia or possibly Allcast to play it.

Chromecast Unofficial API / Information

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
If you're looking for a comprehensive writeup of the Cast protocol take a look here:
https://github.com/jloutsenhizer/CR-Cast/wiki/Chromecast-Implementation-Documentation-WIP
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?
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?
Hi,I have a question about this. Do you know a way to configure the output signal of the chromecast?
I am looking for a way to force 720p instead of 1080p on my tv (got some hdmi EDID problems).
Kind regards,
Vincent
Is it possible somehow to get information about its current status. Mainly if its currently streaming or not?
I need this in order to automatically turn on my multi channel amplifier if any of my chromecast audios connected to it starts streaming.
dhanjel said:
Is it possible somehow to get information about its current status. Mainly if its currently streaming or not?
I need this in order to automatically turn on my multi channel amplifier if any of my chromecast audios connected to it starts streaming.
Click to expand...
Click to collapse
Did you ever find a solution to this?

US Chromecast + Unblock-Us + HBO Nordic = Unable to cast

I've been testing various workarounds for getting my US Chromecast to use Unblock-US DNS in order to access HBO Nordic, but have yet to find a solution. I am currently using an ASUS RT-N56U router flashed with Padvan's custom firmware. I can access HBO Nordic over a LAN on my desktop, but cannot cast it through the "Cast Tab" feature in Chrome nor through Chromecast. I've attempted to use every method posted on this forum and elsewhere: configuring (I think/hope ) iptables through "Run after Router started"; configuring iptables through "Run after Firewall Rules restarted; enabling static routes and then configuring the static route list complete with every Google DNS address under the sun -- nothing works . The screen I get can be found in the below attachment. Any ideas as to what I'm doing wrong? I can always post more pictures if that is of any help.
Thanks,
Steve
Your description of the problem and what you've tried isn't quite clear. If you can play HBO Nordic on your desktop, how are you doing that? Using Unblock-us? If so, are you using it in your desktop DNS settings or your router's settings? Why exactly can't you tab-cast that to the Chromecast? If you're tab-casting, the stream is being relayed through your PC, so if the PC can access HBO Nordic, then it should work.
When you say that you've tried iptables commands and static routes for Google DNS, I hope you don't mean both at the same time. That would be counter-productive.
DJames1 said:
Your description of the problem and what you've tried isn't quite clear. If you can play HBO Nordic on your desktop, how are you doing that? Using Unblock-us? If so, are you using it in your desktop DNS settings or your router's settings? Why exactly can't you tab-cast that to the Chromecast? If you're tab-casting, the stream is being relayed through your PC, so if the PC can access HBO Nordic, then it should work.
When you say that you've tried iptables commands and static routes for Google DNS, I hope you don't mean both at the same time. That would be counter-productive.
Click to expand...
Click to collapse
Thank you for the reply. Unfortunately, I cannot cast HBO Nordic from my desktop to the Chromecast due to the Chromecast's hardcoded Google DNS settings -- hence, why I'm trying to override those settings via my router. I have tried iptables commands and static routes separately, but neither seem to work. Would it be helpful if I posted additional pictures of my router settings? Let me know how I can help you better assess my problem.
Thanks,
Steve

Categories

Resources