Samsung 8-series remote and Kodi/OSMC keymap on the RPI2

Ok

I´ve been running xbmc/kodi/osmc on the rpi for a few years. Did have a extensive night configuring it in 2013 or 14, and I´ve kept the config while moving between releases – and hardware. I´m now up to the rpi2, and is really pleased.

However, after the sd-card on my rpi2 died, and with no backup of the config I found my self back at square one.

I decided to do it a bit diffrently this time, and to make sure I won´t loose the config again, i´m putting it online.

Filename: ~/.kodi/userdata/keymaps/keymap.xml

<keymap>
  <global>
    <remote>
      <red>XBMC.ActivateWindow(Home)</red>
      <green>noop</green>
      <yellow>ContextMenu</yellow>
      <blue>Info</blue>
      <guide>FullScreen</guide>
      <title>Back</title>
      <back>XBMC.ActivateWindow(Home)</back>
    </remote>
  </global>
  <Home>
    <remote>
      <red>XBMC.Restart()</red>
      <green>XBMC.ActivateWindow(Home)</green>
      <yellow>ContextMenu</yellow>
      <blue>Info</blue>
      <guide>FullScreen</guide>
      <title>Back</title>
      <back>XBMC.ActivateWindow(Home)</back>
    </remote>
  </Home>
  <FullscreenVideo>
    <remote>
      <red>CodecInfo</red>
      <green>SubtitleAlign</green>
      <yellow>XBMC.ActivateWindow(subtitlesearch)</yellow>
      <blue>NextSubtitle</blue>
      <guide>FullScreen</guide>
      <title>Back</title>
      <back>RunScript(/home/osmc/.kodi/userdata/stopandmain.py)</back>
      <left>Seek(-10)</left>
      <right>Seek(10)</right>
      <up>Seek(30)</up>
      <down>Seek(-30)</down>
    </remote>
  </FullscreenVideo>
  <VirtualKeyboard>
    <remote>
      <back>PreviousMenu</back>
      <title>BackSpace</title>
    </remote>
  </VirtualKeyboard>
  <Visualisation>
    <remote>
      <blue>Info</blue>
    </remote>
  </Visualisation>
  <MusicOSD>
    <remote>
      <blue>Info</blue>
      <red>CodecInfo</red>
    </remote>
  </MusicOSD>
  <SlideShow>
    <remote>
<blue>Info</blue>
      <red>CodecInfo</red>
    </remote>
  </MusicOSD>
  <SlideShow>
    <remote>
      <blue>Info</blue>
      <red>CodecInfo</red>
    </remote>
  </SlideShow>
  <VideoMenu>
    <remote>
      <blue>Info</blue>
      <red>CodecInfo</red>
    </remote>
  </VideoMenu>
  <OSDVideoSettings>
    <remote>
      <red>noop</red>
      <green>Back</green>
      <yellow>noop</yellow>
    </remote>
  </OSDVideoSettings>
  <OSDAudioSettings>
    <remote>
      <red>noop</red>
      <green>noop</green>
      <yellow>Back</yellow>
    </remote>
  </OSDAudioSettings>
</keymap>

when hitting the exit-button while in fullscreen, the pythonscript stopandmain.py is called stopping the playback and returing to the main menu.

Filename: ~/.kodi/userdata/stopandmain.py

#!/usr/bin/python
import xbmc
import xbmcgui
xbmc.executebuiltin("Action(Stop)")
xbmc.executebuiltin( "XBMC.ActivateWindow(Home)" )

Dette innlegget ble publisert i Software, Tech, Uncategorized og merket med , , , . Bokmerk permalenken.

Legg igjen en kommentar

Din e-postadresse vil ikke bli publisert. Obligatoriske felt er merket med *

+ 24 = 30