Ok I got the play working via Python.
I use this API - github.com/mjs7231/python-plexapi
The key things I had to do:
1. Grab a transient token for the request
Ah, I had NOT indeed worked out the transient token bit. I felt like maybe I needed to fetch one, but hadn't quite worked out how. Are you sending a SETSTREAM and a LOAD or just a LOAD to actually get things playing? If a SETSTREAM, is that going to the plex namespace or the media namespace?
How did you go about sending the commands to the chromecast? I've spent most of the day trying to figure out pychromecast, but I'm not having much luck. I just cannot figure out how to expand the namespace to add a new plex module. I feel like if I could get anything to send it would be a huge leap in the right direction...
import pychromecast.controllers.plexapi as px import pychromecast from plexapi.myplex import MyPlexAccount account = MyPlexAccount.signin('<USERNAME>', '<PASSWORD') plex = account.resource('<SERVER_NAME>').connect() pxr = px.PlexController() cast = pychromecast.Chromecast("<CHROMECASTIP") cast.register_handler(pxr) pxr.namespace = 'urn:x-cast:com.google.cast.sse' white = plex.library.section("TV Shows").get("White Collar") epi = white.seasons().episodes() pxr.play_media(epi,plex)
import pychromecast.controllers.plex as px
|Thread Tools||Search this Thread|