Kodi Community Forum

Full Version: Key mapping puzzler
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Here's a keymap puzzler.

The following does not seem to work:

Code:
<VideoOSD>
    <keyboard>
      <next_track>PlayerControl(SmallSkipForward)</next_track>
      <prev_track>PlayerControl(SmallSkipBackward)</prev_track>
    </keyboard>
  </VideoOSD>
  <FullScreenVideo>
    <keyboard>
      <next_track>PlayerControl(SmallSkipForward)</next_track>
      <prev_track>PlayerControl(SmallSkipBackward)</prev_track>
    </keyboard>
  </FullScreenVideo>

There are no keymap parsing errors in the log. The next and prev track keys go through to skip next/prev as mapped in the system keymap.

If I substitute some other keys for next/prev track, they work. Other media keys (like play/pause) also work.
If I map next and prev track in some other window, they work there.
Those particular keys just can't be mapped in the video window. Any ideas why?
Problem solved. Solution posted here in case anyone is interested/comment:

For some reason (as explained in Using_a_Microsoft_remote_control_in_Windows (wiki)) media keys sometimes get send by appcommand messages. So the mappings need to be in an <appcommand> section.

Curiously, they work fine in the keyboard section for some windows (such as TVGuide, where I'm using them for scrolling) but not for the fullscreen video or OSD.