I am trying to use irule to control Plex (win7). It works ok for the playback commands but I do not understand how to send keys for example “s” to display subtitles during a playback.
Here is my log
2012-03-14 12:53:26,546 (1758) : DEBUG (core:318) - Handling request GET /system/players/salon2/playback/play
2012-03-14 12:53:26,546 (1758) : DEBUG (core:318) - Found route matching /system/players/salon2/playback/play
2012-03-14 12:53:26,552 (1758) : DEBUG (core:318) - Response: 200
2012-03-14 12:53:29,203 (1394) : DEBUG (core:318) - Handling request GET /system/players/salon2/playback/pause
2012-03-14 12:53:29,204 (1394) : DEBUG (core:318) - Found route matching /system/players/salon2/playback/pause
2012-03-14 12:53:29,210 (1394) : DEBUG (core:318) - Response: 200
2012-03-14 12:53:32,239 (11f0) : DEBUG (core:318) - Handling request GET /system/players/salon2/application/SendKey?code=115
2012-03-14 12:53:32,240 (11f0) : DEBUG (core:318) - Found route matching /system/players/salon2/application/SendKey
2012-03-14 12:53:32,240 (11f0) : DEBUG (core:318) - Requesting ‘http://salon2:3000/xbmcCmds/xbmcHttp?command=SendKey(0xf073)’
2012-03-14 12:53:34,273 (11f0) : DEBUG (core:318) - Response: 200
The sendkey?=code115 is in fact interpreted like the + key (increase volume) and only after 4 seconds.
Any suggestions on what I am doing wrong
I have found the keymap folder on the PC (C:\Program Files (x86)\Plex\Plex Media Center\system\keymaps) and I have edited the keyboard.xml file as recommended by Cesar. it works (I am able to set subtitles through a keystroke from iRule) but there is a strong latency (5 sec) for the action to kick in. Any suggestion on how to improve that?
Jam, you are recommanding not to use SendKey any suggestion for alternative options?
I am trying to launch the Plex Client (win7) remotely from my ihpone through irule. I have looked at Cesar recommendation to use favorite and keymap but it seems that favorite is not supported anymore on Laika. Any suggestion on how to sort out that?
Hi All,
How would I send the ascii code for shift+a for direct searching by letter? Usine the ascii code say 65 for the letter a does not work.
Thanks,
amerlino
Hi
I am using iRule with plex, via HTTP Controls… I am wondering how can I send a command to take it to Movies, Or TV Shows directly… The Selection instead of browsing… Is there an HTTP Command for that?
Also the Stop command doesnt work like stop, it takes it to the main section… Anyone has an update on this?
Thanks
did you ever figure this one out?
any updates on the use of sendString?
http://{server}:32400/system/players/{player}/application/sendString?text=a
The syntax seems correct since it works for other items
ie: changing volume
http://{server}:32400/system/players/{player}/application/setVolume?level=24
How do you get status of the currently playing file.
I basically just want to get duration and playback position but can’t see a way to do that.
Any know what the command string looks like to incorporate the server authorization? I am forced to install the plex server on each client as well in order to maintain ip control.
Below is string without authentication.
http://{server}:32400/system/players/{player}/{controller}/{command}
Here's an example of using the PlayMedia command. Atomjack got it almost right, but missed a couple of things, probably because I rushed my previous explanation
- The 'path' argument needs to be a full HTTP URL, since the command is quite flexible (for example, it can be sent to computer A, instructing computer B to play a piece of media stored on computer C)
- The 'key' argument is the key of the
- Both arguments need to be URL encoded to escape the forward slashes & colons
So, if I wanted to play a piece of media on my iMac stored on my Mac Mini, after browsing to the Recently Added TV Shows menu at "/library/sections/3/recentlyAdded" with the key "/library/metadata/3435", I'd send the following request:http://mac-mini.local:32400/system/players/imac.local/application/playMedia?path=http%3A%2F%2Fmac-mini.local%3A32400%2Flibrary%2Fsections%2F3%2FrecentlyAdded&key=%2Flibrary%2Fmetadata%2F3435
I've managed to finally play with this now that I have a more recognized Plex client making it easier to test.
I've definitely grown more into Plex but what I miss is some organizational aspects of XBMC.
Also huge fan of VoxCommando.
I think I managed to think of a way to get VoxCommando / voice commands to direct play movies after finally getting this direct play command to work.
However, I dont think that approach will work for TV since eps are named, episode names.
I reviewed the API page. Is there a way to direct URL a specifc view? Say Star Trek Season 1 or 'unwatched' episodes of ST season1?
This way you could use voice commands to say, play the next ep of whatever shows you were watching like 'on deck'
but jsut be nice be able to say " goto Superfriends, season x or something and being to just jump to it. Especially on devices where going thru a lot of clicks gets annoying due to performance of the GUIs like the Rokus/RPis.
managed to get the episode xml data....anyone manage to get file play command working w/ tv episodes?
The url runs but no errors, just blank browser
Hey Friends,
I got this to work a while back and wanted to try to get it integrated with some other stuff and didnt have time then to follow through. I got some of the other integration points to work and the rest of the API works but I can not get my previously saved commands to work from my notes for the last several versions of PMS. Theres another PMS on the network on 9.8 as well. Is anyone able to use this direct mediaPlay command anymore? Please trying to affirm if somehow localized to me or I somehow still dont understand how this command works? I have a bug report that hasn't got any traction..i thought I saw another related post from someone else but can't find it?
I had two friends try on their systems and they get errors via XML response as well?
Very close to getting integration completed but now this command that used to work isn't.Just frustrated cause not sure a bug or not and spinning in circles
Here's an example of using the PlayMedia command. Atomjack got it almost right, but missed a couple of things, probably because I rushed my previous explanation
- The 'path' argument needs to be a full HTTP URL, since the command is quite flexible (for example, it can be sent to computer A, instructing computer B to play a piece of media stored on computer C)
- The 'key' argument is the key of the
- Both arguments need to be URL encoded to escape the forward slashes & colons
So, if I wanted to play a piece of media on my iMac stored on my Mac Mini, after browsing to the Recently Added TV Shows menu at "/library/sections/3/recentlyAdded" with the key "/library/metadata/3435", I'd send the following request:http://mac-mini.local:32400/system/players/imac.local/application/playMedia?path=http%3A%2F%2Fmac-mini.local%3A32400%2Flibrary%2Fsections%2F3%2FrecentlyAdded&key=%2Flibrary%2Fmetadata%2F3435
Hello, I need a little help.
I have on my PC installed PMS, and I use Plex for Android to stream my movies to Chromecast.
I'm trying to somehow send the Play and Pause commands over HTTP, but are not working.
If I send a navigation command works, but the Playback commands not
If I send the commands of the form:
http://192.168.1.2:32400/player/playback/pause
http://192.168.1.2:32400/player/navigation/home
(the IP is my Android smartphone)
I get in the browser:
Failure: 200 OK
Jan 03, 2015 08:34:31:143 [2512] DEBUG - [Now] Device is Android (Xperia). Jan 03, 2015 08:34:31:143 [2512] DEBUG - [Now] Updated play state for /library/metadata/3820. Jan 03, 2015 08:34:35:912 [6484] DEBUG - Request: [192.168.1.35:65049] GET /system/players/192.168.1.2/navigation/home (5 live) Jan 03, 2015 08:34:35:912 [6484] DEBUG - [com.plexapp.system] Sending command over HTTP (GET): /system/players/192.168.1.2/navigation/home Jan 03, 2015 08:34:35:913 [6484] DEBUG - HTTP requesting to: http://127.0.0.1:49357/system/players/192.168.1.2/navigation/home Jan 03, 2015 08:34:37:484 [6484] DEBUG - [com.plexapp.system] HTTP reply status 200, with 0 bytes of content.
Jan 03, 2015 08:30:48:768 [1224] DEBUG - [Now] Device is Android (Xperia). Jan 03, 2015 08:30:48:768 [1224] DEBUG - [Now] Updated play state for /library/metadata/3820. Jan 03, 2015 08:31:22:554 [5336] DEBUG - Request: [192.168.1.35:63607] GET /system/players/192.168.1.2/playback/pause (2 live) Jan 03, 2015 08:31:22:555 [5336] DEBUG - [com.plexapp.system] Sending command over HTTP (GET): /system/players/192.168.1.2/playback/pause Jan 03, 2015 08:31:22:555 [5336] DEBUG - HTTP requesting to: http://127.0.0.1:49357/system/players/192.168.1.2/playback/pause Jan 03, 2015 08:31:22:900 [5336] DEBUG - [com.plexapp.system] HTTP reply status 200, with 0 bytes of content.
What can be?
Thanks
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.