PlexMediaPlayer Keymapping Buttons PLUS and MINUS

Server Version#: Version 1.21.1.3876 (debian10)
Player Version#:2.58.0.dev-05368698 (rPi4 debian10)

I am trying to change my Keymapping on my rPi4.

I need Volume control in PMP for my IR-Remote.
I have installed ir-keytable on debian.
I can control Volume Up and Down on my OS-Desktop, Kodi, VLC, …

But i can not control Audio inside PlexMediaPlayer.
The Buttons “Volume Up” and Volume Down" still controll my Desktop-Audio.

Is it possible to map the Buttons in Plex ?
“+” to my IR-Remote Button “Volume Up”
“-” to my IR-Remote Button “Volume Down”

I have tried to move “Keyboard.son” in folder
“~/.local/share/plexmediaplayer/inputmaps”
and change the mapping.
But takes no effect after reboot and PMP restart.

I have tried to change my scancode/keycode mapping in ir-keytable.
i did not found a scancode for “+” “-” :frowning:

also tried xbindkeys to send different signal … but no luck this night …

hope someone can advise me :wink:

Thanks.
Bg mfg

You should check the logs. It states there when it receives an IR input, what it is called, and what it maps to, if anything. You should note that in the inputmaps, the examples directory contains some examples and IR is one such example there. The mappings you’ll find in the keyboard.json will not affect mapping of IR inputs (unless you have something that maps IR to keyboard keypresses).

Thanks for your answer.

if i press button “Volume Up” or “Volume Down” from my ir-remote,
plex receives keyboard input

i have added this lines in my keyboard.json and moved the file in inputmaps folder
“Volume Up”: “increase_volume”,
“Volume Down”: “decrease_volume”,

i got this in my log

2021-01-12 18:01:58 [ INFO ] JS: Did not move header “accept” to query string. This can result in an unnecessary OPTIONS preflight request.
2021-01-12 18:02:06 [ DEBUG ] InputComponent.cpp @ 160 - Input received: source: “Keyboard” keycode: “Volume Up” : InputBase::KeyUp
2021-01-12 18:02:07 [ DEBUG ] InputComponent.cpp @ 160 - Input received: source: “Keyboard” keycode: “Volume Up” : InputBase::KeyUp
2021-01-12 18:02:08 [ DEBUG ] InputComponent.cpp @ 160 - Input received: source: “Keyboard” keycode: “Volume Down” : InputBase::KeyUp
2021-01-12 18:02:08 [ DEBUG ] InputComponent.cpp @ 160 - Input received: source: “Keyboard” keycode: “Volume Down” : InputBase::KeyUp
2021-01-12 18:02:08 [ INFO ] JS: [Player] Timeline, {
“ratingKey”: “76192”,
“key”: “/library/metadata/76192”,
“playbackTime”: 447345,
“playQueueItemID”: “13985”,
“state”: “playing”,
“hasMDE”: 1,
“time”: 449000,
“duration”: 1460000
}
2021-01-12 18:02:08 [ INFO ] JS: Did not move header “accept” to query string. This can result in an unnecessary OPTIONS preflight request.
2021-01-12 18:02:09 [ DEBUG ] InputComponent.cpp @ 160 - Input received: source: “Keyboard” keycode: “Volume Down” : InputBase::KeyUp
2021-01-12 18:02:09 [ DEBUG ] InputComponent.cpp @ 160 - Input received: source: “Keyboard” keycode: “Volume Up” : InputBase::KeyUp
2021-01-12 18:02:09 [ DEBUG ] InputComponent.cpp @ 160 - Input received: source: “Keyboard” keycode: “Volume Up” : InputBase::KeyUp
2021-01-12 18:02:10 [ DEBUG ] InputComponent.cpp @ 160 - Input received: source: “Keyboard” keycode: “Volume Up” : InputBase::KeyUp

It seems you have the right idea but for some reason it did not actually map this keycode to an action (b/c it’ll log what action it maps to). You’ll have to check the logs for a reason as to why. Perhaps the json file you provided isn’t valid json which means it won’t use any of it.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.