phillipj / node-plex-control

Controlling Plex clients through the Plex Media Server HTTP API
MIT License
31 stars 6 forks source link

Current playing item #2

Closed ajdaniel closed 9 years ago

ajdaniel commented 10 years ago

Is there a way to get a client's current playing item?

phillipj commented 10 years ago

Cant find traces of that in the outdated docs of the Plex HTTP API, although those docs are known to have alot of black holes.. Have you tried querying the API directly for any traces of what's currently playing?

ajdaniel commented 10 years ago

I'm pretty sure it is possible from software I see use the API, although I can't find the docs (which I find impossible to find anyway). If we figure it out, it would be great to add to Plex-Control. I would like to use Plex-Control in a pebble.js app

phillipj commented 10 years ago

I completely agree @ajdaniel, it would be a great feature too have this module! After alot of searching I just found the /status/sessions URL on the API, which might be just what we're looking for.

https://code.google.com/p/plex-api/wiki/StatusSessions

phillipj commented 10 years ago

FYI im working on getting this implemented. Done some refactoring on master and just pushed some work in progress onto a feature branch.

phillipj commented 9 years ago

Just published v1.0.0 with a couple of new commands under .currently which should answer your question @ajdaniel

ajdaniel commented 9 years ago

That is awesome thank you @phillipj! Great turnaround!