plex-media-player icon indicating copy to clipboard operation
plex-media-player copied to clipboard

Player does not handle remote control commands from clients that are not subscribed

Open DMarby opened this issue 9 years ago • 17 comments

When attempting to control the PMP I noticed that it refuses to do playback commands from clients that are not subscribed, even tho the Remote Control Api spec in the wiki says that that "Players MUST accept and process commands received from unsubscribed controllers, even if they lack a commandID.", is this intentional?

This currently makes it impossible to control PMP through the plex media server, since the plex media server does not forward any of the /subscribe or /poll requests. That is a bit annoying, since it makes it impossible to remote control a the PMP from outside the same network, unless you expose the PMP player to the internet.

DMarby avatar Jan 09 '16 19:01 DMarby

Cc: @kayone

tru avatar Jan 09 '16 20:01 tru

can you explain to me what your setup looks like and how I can re-create it here, which controller

makes it impossible to control PMP through the plex media server

can you explain what you mean by control through the plex media server, you mean controlling PMP using the desktop web UI?

kayone avatar Jan 12 '16 22:01 kayone

My setup right now consists of my own controller, a plex media server, and a plex media player client. In the plex media server there is an api to forward commands to clients, such as http://media-server:port/system/players/<clientIp>/playback/playMedia. However, the subscribe and poll url:s is not supported by that, and since the plex media player doesn't listen to playback commands from clients that are not subscribed, it is now impossible to control from outside the network without exposing the client itself. The reason for sending the commands through the server would be so that one only needs to expose the server to the outside world, and have it handle authentication.

DMarby avatar Jan 12 '16 22:01 DMarby

Ping.

I'm having the same issue. With PHT it is possible to use the PMS as a proxy to control the player. This doesn't currently work for PMP. Also, direct control of the player is much more complicated if the player needs to be subscribed and is required to regularly sent the subscribe command (if I understand it correctly).

Any updates on this issue?

michielkikkert avatar Feb 04 '16 09:02 michielkikkert

I've raised the issue internally, sorry we lost track of it!

elan avatar Mar 14 '16 01:03 elan

Any updates on this?

Edit: Not sure why me posting this comment caused @kayone to be unassigned, is that normal github issue behaviour?

DMarby avatar Apr 21 '16 18:04 DMarby

I'll ping again internally, thanks!

elan avatar Apr 25 '16 03:04 elan

Actually just found the issue. It was slated for completion mid-April, so I'm assuming it won't be too much longer now.

elan avatar Apr 25 '16 03:04 elan

I am pretty sure this is probably all the host's fault. I have it on my list to look into, but when I started to look at it there was not a easy fix here lot of logic that was depending on having the x-plex-target-identifier in a lookup table. This is an PMP implementation issue for sure, but still needs to retest the whole bamboozle again so I need to carve out time for doing that

tru avatar May 03 '16 06:05 tru

Tracking this for CortanaPlex.

vanstinator avatar May 12 '16 14:05 vanstinator

At least I have a custom controller to work now by controlling PMP directly with the API. The subscribing is a bit of a pain, however, simply calling the subscribe endpoint before any command seems to work fine.

michielkikkert avatar Sep 06 '16 17:09 michielkikkert

I still can't get this working. Maybe somebody could update the remote control API documentation?

Petter-W avatar Sep 11 '16 19:09 Petter-W

@DMarby : i think this should be fixed now, can you confirm if we can close this ?

LongChair avatar Apr 11 '18 15:04 LongChair

@LongChair I am still seeing this behaviour with version 2.8.0.813-6e77dc0c of Plex Media Player, all requests other than /subscribe or /poll just returns a 406 status-code for controllers that haven't subscribed.

DMarby avatar Apr 12 '18 11:04 DMarby

@markus101 : maybe we should rediscuss this, i’m not very familiar with this API

LongChair avatar Apr 15 '18 20:04 LongChair

Is there any update on this issue?

ttshivers avatar Jun 10 '20 05:06 ttshivers

I am able to DIRECTLY control both the Mac and Windows PMP WITHOUT having to subscribe first.

fizzsnob avatar Jun 10 '20 14:06 fizzsnob