Posts: 25
Joined: May 2014
Reputation:
0
2014-06-02, 13:45
(This post was last modified: 2014-06-11, 18:06 by da-anda.)
Hi there,
I am running openeelec 12.2 frodo XBMC.
I want to configure XBMC so that pressing the backspace button on keyboard (or remote) will stop a video at the same time as going back. Right now the video still plays when you press back which I don't like.
I know this has something to do with keymapping but I am not sure how to implement this on the Pi. If anyone could help me out with this it would be much appreciated.
Cheers,
Colin
Posts: 31,445
Joined: Jan 2011
See the "101 on keymaps" on
keymaps (wiki).
Posts: 6,252
Joined: Jun 2009
Reputation:
115
da-anda
Team-Kodi Member
Posts: 6,252
map the "stop" action on backspace for the fullscreenVideo and fullscreenPVR windows
Posts: 25
Joined: May 2014
Reputation:
0
Thanks guys, but I can't get it to work.
I have this text saved as keyboard.xml
<keymap>
<fullscreeninfo>
<keyboard>
<backspace>stop</backspace>
</keyboard>
</fullscreeninfo>
</keymap>
It is saved in .xbmc\userdata\keymaps
As far as I can see, this should work. I am baffled why it doesn't. This is on Openelec 4.03. It also doesn't work on a windows 13 XBMC installation.
Any ideas? Would be really appreciated.
Cheers,
Colin
Posts: 402
Joined: Apr 2014
Reputation:
7
Try installing and using the XBMC keymap editor program add-on instead of hand-crafting your own file.
Posts: 6,252
Joined: Jun 2009
Reputation:
115
da-anda
Team-Kodi Member
Posts: 6,252
please note that "fullscreeninfo" is the OSD info overlay which is shown when pressing "i" during video playback. What you want is "fullscreenvideo" and "fullscreenlivetv"
Posts: 25
Joined: May 2014
Reputation:
0
I tried keymap editor and that didn't work well. I could configure the backspace button to stop the video, but it then would not function as a backspace button
and changing to "fullscreenvideo" instead of "fullscreeninfo" has no effect either. I am completely baffled.
Anyone any other ideas?
Posts: 31,445
Joined: Jan 2011
Your remote might not be seen as a keyboard. Try using <remote> instead of <keyboard> (technically speaking, the file name doesn't matter).
Posts: 19,982
Joined: May 2009
Reputation:
451
nickr
Retired Team-Kodi Member
Posts: 19,982
2014-06-08, 01:27
(This post was last modified: 2014-06-08, 01:28 by nickr.)
You are trying to get one button to do two things. Stop playback is one action, go to home screen is another. You can't simply map one button press to two actions.
There may be some json-rpc way to do it. Or a short script triggered by keypress. But is it really that hard to press stop followed by back?
Changing the system keymap will get over written on upgrade. Just don't.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Posts: 6,252
Joined: Jun 2009
Reputation:
115
da-anda
Team-Kodi Member
Posts: 6,252
wait. do you want XBMC to return to home screen after stop or just do a regular stop which will take you to the previous screen.