Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to launch and control the default receiver app #7

Closed
balloob opened this issue Mar 10, 2014 · 13 comments
Closed

Add support to launch and control the default receiver app #7

balloob opened this issue Mar 10, 2014 · 13 comments

Comments

@balloob
Copy link
Collaborator

balloob commented Mar 10, 2014

Chromecast has a default receiver app that is able to play any media on the web that Chrome can decode. Support for this will allow us to launch this app and send media at it.

@jaapz
Copy link
Contributor

jaapz commented Mar 10, 2014

@minektur
Copy link
Contributor

The guy who wrote Caster and Fling (entertalion) has documented his understanding of the RAMP protocol here:

https://plus.google.com/+LeonNicholls/posts/b3wCmToPehK

and Note that neither Caster or Fling work anymore without a Developer account, and a whitelisted developer appid which you have to put into the app yourself. I guess google changed the method he used to send video to the default app and his method no longer works. So, now you need a custom receiver to make it work...

@altf4
Copy link

altf4 commented May 6, 2014

I'm really interested in getting this functionality working.

According to Google's Receiver Apps page, you only need a developer account whitelisted by Google if you're trying to use a custom receiver app. The default receiver app should allow streaming from anyone: https://developers.google.com/cast/docs/receiver_apps#default

@srirajan
Copy link

srirajan commented Jun 7, 2014

First of all thanks for sharing this. It was helpful in my exercises.
I am trying to using the default app to play some local media file and do randomizations. @altf4 is correct that you don't need a developer account.

Where I am stuck right now is trying to decipher the json format used to post to the default receiver app
I have read the docs and based on https://developers.google.com/cast/docs/reference/messages something like this should work

start_app(host, APP_ID["DEFAULT_MEDIA_RECEIVER"],
        {
        "requestId":"0",
        "type":"LOAD",
        "title":"video",
        "media": {
                    "contentId":"http://myurl/file.mp4",
                    "streamType":"NONE",
                    "contentType": "video/mp4",
                 },
        "currentTime":"0",
        }
        )

When I do the above, I don't get any response and that is not helping.
Is there a way to debug this further ? or is this format better explained somewhere ?

Related to this is https://github.com/vickyg3/UrlPlayer which works fine for me but that requires Chrome and the Chromecast extension.
More info at
https://github.com/vickyg3/UrlPlayer/blob/master/js/castplayer.js#L220

Thanks

@balloob
Copy link
Collaborator Author

balloob commented Jun 9, 2014

The default media receiver is part of the new API that Google implemented and cannot be started from PyChromecast because it only supports the original API.

@srirajan
Copy link

thanks for the feedback. Will see if I can try the new API

@manatlan
Copy link

btw, It should be possible ...

try this : https://gist.github.com/TheCrazyT/11263599
it works with me ...

@srirajan
Copy link

@manatlan thanks for sharing. That is awesome. I did not have time to hack it but your example works perfectly fine with a local video as well.

@balloob
Copy link
Collaborator Author

balloob commented Aug 18, 2014

I will ask the author if I can clean it up and integrate it into PyChromecast.

@minektur
Copy link
Contributor

Yeah it is what I would have done (instead of the debugger interface) if I
had better debugging/RE skills... If you find yourself short on time, I
could do the integration... lemme know if you want help.

Fred

On Mon, Aug 18, 2014 at 9:43 AM, Paulus Schoutsen notifications@github.com
wrote:

I will ask the author if I can clean it up and integrate it into
PyChromecast.


Reply to this email directly or view it on GitHub
#7 (comment).

@balloob
Copy link
Collaborator Author

balloob commented Oct 12, 2014

This issue has been resolved. It can be started with
cast.launch_app(pychromecast.APP_MEDIA_RECEIVER)

And can be controller from the MediaController located at cast.media_controller.

@balloob balloob closed this as completed Oct 12, 2014
@swapnilbhai90
Copy link

I am Using Default Media Receiver nd passing data .
MediaInfo mediaInfo = new MediaInfo.Builder(image ) // image is url
.setContentType("image/jpeg")
.setStreamType(MediaInfo.STREAM_TYPE_BUFFERED)
.setMetadata( mediaMetadata )
.build();

I didn't even created Receiver.I dont want to device to download Image from my url and show.
Just want to send data from my app to SCreeen.
How to send image from app but not by simply sending url.?
Please help me out !!!!!!

@Manouchehri
Copy link

Is it possible to use a EXT-X-KEY tag with the default receiver app?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants