Giter Site home page Giter Site logo

Comments (5)

balloob avatar balloob commented on August 15, 2024

You need to use the full string that is mentioned in the cast.status
object: 'urn:x-cast:mdx-netflix-com:service:target:2'. It looks like you
are using 'urn:x-cast:mdx-netflix-com'.
On Sun Dec 07 2014 at 9:17:52 AM Mike Szczys [email protected]
wrote:

Great work on this package. I'm trying to get "pause" to work with Netflix
and understand I need to add my own namespace. Here's my object:

class MyController(BaseController):
def init(self):
super(MediaController, self).init("urn:x-cast:mdx-netflix-com")
def receive_message(self, message, data):
print("Wow, I received this message: {}".format(data))
return True
def do_pause(self):
self.send_message("PAUSE", inc_session_id=True)

Which I instantiate and register. But when I try to use it I get an error:

cast.status
CastStatus(is_active_input=True, is_stand_by=False, volume_level=1.0, volume_muted=False, app_id=u'REMOVED', display_name=u'Netflix', namespaces=[u'urn:x-cast:mdx-netflix-com:service:target:2'], session_id=u'REMOVEDFORTHISPOST', transport_id=u'web-2', status_text='')
netflix = MediaController()
cast.register_handler(netflix)
netflix.do_pause()

Traceback (most recent call last):
File "<pyshell#84>", line 1, in
netflix.do_pause()
File "<pyshell#52>", line 8, in do_pause
self.send_message("PAUSE", inc_session_id=True)
File "/usr/local/lib/python2.7/dist-packages/PyChromecast-0.6-py2.7.egg/pychromecast/controllers/init.py", line 77, in send_message
"application.").format(self.namespace))
UnsupportedNamespace: Namespace urn:x-cast:mdx-netflix-com is not supported by runningapplication.

Any idea where I'm going wrong?


Reply to this email directly or view it on GitHub
#34.

from pychromecast.

szczys avatar szczys commented on August 15, 2024

Thanks that fixed it. I went on to try sniffing the packets using your Exploring Namespaces instructions.

Looks like the play and pause packets are encrypted? I see "Ping" and "Pong" messages in plain text, but everything else includes a "ciphertext" value and no obvious "play" or "pause". Guess I'll keep at it!

from pychromecast.

nkeilar avatar nkeilar commented on August 15, 2024

@szczys Any luck? Were you able to launch a specific video on netflix? Thanks for any pointers.

from pychromecast.

fadnavis avatar fadnavis commented on August 15, 2024

@szczys any progress? I am stuck at the exact same point. Thanks in advance!

from pychromecast.

szczys avatar szczys commented on August 15, 2024

I abandoned this project shortly after posting here. Sorry.

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.