Giter Site home page Giter Site logo

Comments (19)

adrianlshaw avatar adrianlshaw commented on July 16, 2024 2

curl http://192.168.0.2:8008/apps/YouTube -X POST -d 'v=3ZdSDUyxFmc'

EDIT:
Ok, I realized that this is using the old DIAL protocol. So this doesn't really apply here.

Does this method still work for anyone? Today I've noticed it has stopped working and returns 404.

curl http://Chromecast.local:8008/apps/YouTube -X POST -d 'v=3ZdSDUyxFmc' -v
Note: Unnecessary use of -X or --request, POST is already inferred.
*   Trying 192.168.1.7...
* TCP_NODELAY set
* Connected to Chromecast.local (192.168.1.7) port 8008 (#0)
> POST /apps/YouTube HTTP/1.1
> Host: Chromecast.local:8008
> User-Agent: curl/7.52.1
> Accept: */*
> Content-Length: 13
> Content-Type: application/x-www-form-urlencoded
> 
* upload completely sent off: 13 out of 13 bytes
< HTTP/1.1 404 Not Found
< Content-Length:0

from pychromecast.

joelhaasnoot avatar joelhaasnoot commented on July 16, 2024

Same issue here

from pychromecast.

andmart avatar andmart commented on July 16, 2024

Same issue here[2]

from pychromecast.

franciscod avatar franciscod commented on July 16, 2024

same!

from pychromecast.

brusc avatar brusc commented on July 16, 2024

Same issue as well. Any ideas on a fix?

from pychromecast.

balloob avatar balloob commented on July 16, 2024

I think that YouTube has changed the way they communicate with the Chromecast. I did dig into this once and it seems that YouTube is moving to a system where they pass a token that you need to use to talk to a TV queue API.

from pychromecast.

brusc avatar brusc commented on July 16, 2024

Sounds good. I appreciate the info! So is it fair to say that the YouTube controller function is out of commission for the foreseeable future? No worries if so. Just wondering if it's time to move onto other media player options.

from pychromecast.

balloob avatar balloob commented on July 16, 2024

Yes, should probably add a warning to the controller.

from pychromecast.

brusc avatar brusc commented on July 16, 2024

Sounds good! 👍

from pychromecast.

clusterfudge avatar clusterfudge commented on July 16, 2024

Sorry, just to clarify, this is dead in the water? A warning on the controller of "Hey, this doesn't work at all" seems kinda sub-awesome. Thanks!

from pychromecast.

am0s avatar am0s commented on July 16, 2024

It's dead unless someone can figure out what needs to be sent to the youtube controller.
I think the code needs to setup a session (lounge) before passing along the video to play (or rather enqueue), but the exact names of variables to pass along etc. is unknown at the moment.

I might be able to have a look at it after the multiroom features are done, but can't really promise anything.

from pychromecast.

clusterfudge avatar clusterfudge commented on July 16, 2024

Got it. I may try to capture the traffic as it goes past and see if I can pitch in, but that does mean closing my other 40 browser tabs, and I finally just got them just right :)

from pychromecast.

clusterfudge avatar clusterfudge commented on July 16, 2024

I've been over my dump several times, and I'm unable to find anything related to a session/lounge in the protocol. With the exception of some messages sending sessionId when the chromecast plugin does not, I haven't found any differences in the protocol. I'm concerned this may just be a matter of timing, which would be lame.

from pychromecast.

clusterfudge avatar clusterfudge commented on July 16, 2024

Sorry for the long delay; I did put another few hours into this and the session dumps from chrome exactly mirror the logs from pychromecast; I have no understanding of how this protocol has changed or how to get flingVideo working again. I've now heard reports that it's intermittent, and I'm hearing from other people that it works fine. I'm very clearly still broken, so who knows what's actually going on.

from pychromecast.

agumonkey avatar agumonkey commented on July 16, 2024

castnow used to have a similar feature but now suggest to pipe the mp4 stream found by youtube-dl toward the chromecast device (note that this seems buggy too). https://github.com/xat/castnow Just in case it gives people ideas.

from pychromecast.

ur1katz avatar ur1katz commented on July 16, 2024

I have a working(mostly working) POC - https://github.com/ur1katz/pychromecast
The session parameters are very not clear and youtube changes then frequently..
i will not have much time to work on it so feel free to help :)

from pychromecast.

enriquegh avatar enriquegh commented on July 16, 2024

@ur1katz hey if you need any help I would love to. I've been playing with your fork and so far so good!

from pychromecast.

theychx avatar theychx commented on July 16, 2024

@ur1katz
Have you considered doing a PR? Even in it's current state, your controller is much superior to the completely broken one currently in pychromecast.

from pychromecast.

ivan-krukov avatar ivan-krukov commented on July 16, 2024

Any news on this? How about using the HTTP interface exposed on 8008? This still works for chromecast v2:

curl http://192.168.0.2:8008/apps/YouTube -X POST -d 'v=3ZdSDUyxFmc'

EDIT:
Ok, I realized that this is using the old DIAL protocol. So this doesn't really apply here.

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.