Skip to content

Instantly share code, notes, and snippets.

@cruffenach
Created December 6, 2013 22:01
Show Gist options
  • Save cruffenach/7832838 to your computer and use it in GitHub Desktop.
Save cruffenach/7832838 to your computer and use it in GitHub Desktop.
Control Plex Up Key Appescript
set thePlayer to do shell script "defaults read ~/.plex/config.plist player_name"
set theURL to "mini.local:32400/system/players/" & thePlayer & "/navigation/moveUp"
do shell script "curl " & quoted form of theURL
set theURL to "mini.local:32400/system/players/" & thePlayer & "/playback/bigStepForward"
do shell script "curl " & quoted form of theURL
@elan
Copy link

elan commented Dec 6, 2013

These commands all still exist:

/player/navigation/moveRight
/player/navigation/moveLeft
/player/navigation/moveDown
/player/navigation/moveUp
/player/navigation/select
/player/navigation/back

Your bigStepForward is trickier.

/player/playback/stepBack seeks back 15 seconds, or the expected platform value.
/player/playback/stepForward seeks forward 30 seconds, or the expected platform value.
/player/playback/seekTo?offset=XXX

@cruffenach
Copy link
Author

It there a way to query the current offset and roll my own bigStepForward

@elan
Copy link

elan commented Dec 6, 2013

Use:

/player/timeline/poll?wait=0

to get a current "timeline" with details on what's playing, including offset and duration.

@elan
Copy link

elan commented Dec 6, 2013

Possibly needed:

  • Client MUST pass the X-Plex-Client-Identifier header with this request to allow the player to track these more ephemeral subscribers (just pass anything).
  • Note that commandID must be sent to this endpoint too, this allows debouncing with commands sent (again, pass anything).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment