Giter Site home page Giter Site logo

Comments (13)

jaapz avatar jaapz commented on July 16, 2024

https://github.com/entertailion/Caster

Might be interesting to see how this app launches the receiver app and starts playback.
Especially:

https://github.com/entertailion/Caster/blob/master/src/com/entertailion/java/caster/Playback.java#L201
https://github.com/entertailion/Caster/blob/master/src/com/entertailion/java/caster/RampClient.java#L128

from pychromecast.

minektur avatar minektur commented on July 16, 2024

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...

from pychromecast.

altf4 avatar altf4 commented on July 16, 2024

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

from pychromecast.

srirajan avatar srirajan commented on July 16, 2024

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

from pychromecast.

balloob avatar balloob commented on July 16, 2024

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.

from pychromecast.

srirajan avatar srirajan commented on July 16, 2024

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

from pychromecast.

manatlan avatar manatlan commented on July 16, 2024

btw, It should be possible ...

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

from pychromecast.

srirajan avatar srirajan commented on July 16, 2024

@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.

from pychromecast.

balloob avatar balloob commented on July 16, 2024

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

from pychromecast.

minektur avatar minektur commented on July 16, 2024

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 [email protected]
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).

from pychromecast.

balloob avatar balloob commented on July 16, 2024

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.

from pychromecast.

swapnilbhai90 avatar swapnilbhai90 commented on July 16, 2024

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 !!!!!!

from pychromecast.

Manouchehri avatar Manouchehri commented on July 16, 2024

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

from pychromecast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.