How to play/pause from HTTP API

Hi everyone,
I’m currently trying to create a remote control application and I’m struggling to play or pause a video using HTTP API.

I managed to sign in with https://plex.tv/users/sign_in.json and I received my authorization token. Then I received info about devices with https://plex.tv/devices.json.
After this step I started video on http://localhost:32400/web/index.html# and now I’m trying to pause that video with http://{localhostIP}:32400/system/players/{public_ip_PMS}/playback/pause?X-Plex-Token={received_token}&Client-Identifier={identifier_from_devices.json} but nothing is happening and I’m receiving code 200 with empty response body.

What am I doing wrong?

im interested too!

Check out the Remote Control API for full details on this.

Fetch devices from https://plex.tv/api/v2/resources
Identify the device you want from the response and also notice the connections array for that devices. Test them and find one that works. You will likely need to be on the same local network as the player since all the devices I have tested only have working local connections.

You need to send the commands to the player connection rather than to your Plex server

1 Like