Created
December 6, 2013 22:01
-
-
Save cruffenach/7832838 to your computer and use it in GitHub Desktop.
Control Plex Up Key Appescript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
It there a way to query the current offset and roll my own bigStepForward
Use:
/player/timeline/poll?wait=0
to get a current "timeline" with details on what's playing, including offset and duration.
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
These commands all still exist:
Your bigStepForward is trickier.