mapping numeric keys on a remote
#1
hi
i hope i am at the right section
i have a raspberry pi with xbmc and I want to map my remote's numeric keys to act as the percentage of the video I am watching. For example when press 1 it goes to 10%, press 2 and it goes to 20% percentage etc...
can someone guide me as to how to do this?
thx Smile
Reply
#2
I can't remember if you need the full remote keymap for a replacement, or if it appends it like it does for keyboard, but make a text file called remote.xml and place it in userdata (wiki)/keymaps/ with this text:

Code:
<keymap>
  <FullscreenVideo>
    <remote>
      <zero>PlayerControl(seekpercentage(99))</zero>
      <one>PlayerControl(seekpercentage(10))</one>
      <two>PlayerControl(seekpercentage(20))</two>
      <three>PlayerControl(seekpercentage(30))</three>
      <four>PlayerControl(seekpercentage(40))</four>
      <five>PlayerControl(seekpercentage(50))</five>
      <six>PlayerControl(seekpercentage(60))</six>
      <seven>PlayerControl(seekpercentage(70))</seven>
      <eight>PlayerControl(seekpercentage(80))</eight>
      <nine>PlayerControl(seekpercentage(90))</nine>
    </remote>
  </FullscreenVideo>
</keymap>

I think. (about to fall asleep). If not correct, someone should be able to point you in the right direction with this. I wanted to post it though because it's not really documented that doing this is possible.
Reply
#3
It's possible the numeric keys on your remote may be identified as numpad keys instead, so if what Ned presented above doesn't work, try prefixing each of the numbers with "numpad". For example:
Code:
<numpadone>PlayerControl(seekpercentage(10))</numpadone>
Reply
#4
(2013-01-30, 16:41)Ned Scott Wrote: I can't remember if you need the full remote keymap for a replacement, or if it appends it like it does for keyboard, but make a text file called remote.xml and place it in userdata (wiki)/keymaps/ with this text:

Works perfectly using CEC through a R-Pi/OpenElec> Sony STR-DA2400ES Receiver> Samsung PS50B530 TV (Using the TV's Remote)> ... Thanks!
Reply
#5
thanks guys for your replies I will test it and get back to you Smile
Reply
#6
(2013-01-30, 16:41)Ned Scott Wrote: I can't remember if you need the full remote keymap for a replacement, or if it appends it like it does for keyboard, but make a text file called remote.xml and place it in userdata (wiki)/keymaps/ with this text:

Code:
<keymap>
  <FullscreenVideo>
    <remote>
      <zero>PlayerControl(seekpercentage(99))</zero>
      <one>PlayerControl(seekpercentage(10))</one>
      <two>PlayerControl(seekpercentage(20))</two>
      <three>PlayerControl(seekpercentage(30))</three>
      <four>PlayerControl(seekpercentage(40))</four>
      <five>PlayerControl(seekpercentage(50))</five>
      <six>PlayerControl(seekpercentage(60))</six>
      <seven>PlayerControl(seekpercentage(70))</seven>
      <eight>PlayerControl(seekpercentage(80))</eight>
      <nine>PlayerControl(seekpercentage(90))</nine>
    </remote>
  </FullscreenVideo>
</keymap>

I think. (about to fall asleep). If not correct, someone should be able to point you in the right direction with this. I wanted to post it though because it's not really documented that doing this is possible.

i logged in the raspberry using filezilla but I cant find the userdata folder
do I have to root it?
Reply
#7
It's in a hidden folder: ~/.xbmc/userdata
Reply
#8
how do I access it?
Reply
#9
http://www.rackspace.com/knowledge_cente...ftp-client

Scroll down to the section pertaining to your Filezilla version.
Reply
#10
I should have thought of that
thanks for your help
Reply
#11
one last question that bugs me. Smile
my video files don't resume. when I exit a video and start it again it begins from the start and not from I where I stopped. I have enabled at the file settings to resume when play but nothing happens. is this a bug or do i need to enable something?
Reply
#12
Please start a new thread for a different topic. Thanks.
Reply

Logout Mark Read Team Forum Stats Members Help
mapping numeric keys on a remote0