Apple TV 4K - Kodi custom keymap for the SiriRemote
#31
yes, it works after going back to main menu, thanks! But it's not too convenient, I must say Smile
Reply
#32
(2019-04-24, 23:12)kambala Wrote: But it's not too convenient, I must say Smile

Hm..., ok, I also recognized it, but it was fine for me and my wife for the few buttons the siri remote has. 

What do you think about the following change?
​​​
  • I defined "FullScreen" to the button id="10" (swipe left) in the global section. 
  • I changed "CodecInfo" from button id="10" to id="11" (swipe right) in the relevant sections.

At the moment I do not have the possibility to test this. Maybe someone else or you can try it?

EDIT: What do you think about this function of mrmc?

https://forum.kodi.tv/showthread.php?tid...pid2789563

Do think it's possible to port this to Kodi Leia?

Regards Hoppel

xml:

<?xml version="1.0" encoding="UTF-8"?>
<!-- This file contains the mapping of keys (gamepad,remote and keyboard) to actions within XBMC -->
<!-- The <global> section is a fall through - they will only be used if the button is not        -->
<!-- used in the current window's section.  Note that there is only handling                     -->
<!-- for a single action per button at this stage.                                               -->
<!-- For joystick/gamepad configuration under linux/win32, see below as it differs from xbox     -->
<!-- gamepads.                                                                                   -->

<!-- The format is:                                                                              -->
<!--    <device>                                                                                 -->
<!--      <button id=""#>xbmc action</button>
<!--    </device>                                                                                -->

<!-- To map keys from other remotes using the RCA protocol, you may add <customcontroller name="SiriRemote"> blocks -->
<!-- In this case, the tags used are <button id=""#> where # is the original button code (OBC) of the key -->
<!-- You set it up by adding a <customcontroller name="SiriRemote"> block to the window or <global> section:        -->
<!--    <customcontroller name="SiriRemote">                                                                        -->
<!--       <button id="45">Stop</button>
<!--    </customcontroller>                                                                       -->

<!-- Note that the action can be a built-in function.                                            -->
<!--            eg <button id="6">ActivateWindow(Favourites)</button>
<!-- would bring up Favourites when the button with the id of 6 is press. In this case, "Menu"   -->

<!--                                                                                             -->
<!--  Button Ids:                                                                                -->
<!--  'id' is the button ID used by SDL. The key ids recognized from your remote appears      -->
<!--  in /var/log/syslog on the ATV2 for each button pressed and when debug mode is enabled      -->
<!--  Use your log to discover and map custom buttons to actions.                                -->

<keymap>
  <global>
    <customcontroller name="SiriRemote">
      <!-- up --> <button id="1">Up</button>
      <!-- down --> <button id="2">Down</button>
      <!-- left --> <button id="3">Left</button>
      <!-- right --> <button id="4">Right</button>
      <!-- center --> <button id="5">Select</button>
      <!-- menu --> <button id="6">Back</button>
      <!-- hold center --> <button id="7">ContextMenu</button>
      <!-- swipe up --> <!-- <button id="8">FirstPage</button> -->
      <!-- swipe down --> <!-- <button id="9">LastPage</button> -->
      <!-- swipe left --> <button id="10">FullScreen</button>
      <!-- swipe right --> <!-- <button id="11">PageDown</button> -->
      <!-- play/pause --> <button id="12">PlayPause</button>
      <!-- ir play --> <button id="13">Play</button>
      <!-- ir pause --> <button id="14">Pause</button>
      <!-- ir stop --> <button id="15">Stop</button>
      <!-- ir next track --> <button id="16">SkipNext</button>
      <!-- ir prev track --> <button id="17">SkipPrevious</button>
      <!-- ir fast forward --> <button id="18">FastForward</button>
      <!-- ir rewind --> <button id="19">Rewind</button>
    </customcontroller>
  </global>
  <Home>
    <customcontroller name="SiriRemote">
      <button id="6">FullScreen</button>
    </customcontroller>
  </Home>
  <FullscreenVideo>
    <customcontroller name="SiriRemote">
      <button id="1">Up</button>
      <button id="2">Down</button>
      <button id="3">StepBack</button>
      <button id="4">StepForward</button>
      <button id="5">OSD</button>
      <button id="6">Back</button>
      <button id="7">Info</button>
      <button id="8">AudioNextLanguage</button>
      <button id="9">NextSubtitle</button>
      <button id="11">CodecInfo</button>
  </customcontroller>
  </FullscreenVideo>
  <FullscreenLiveTV>
    <customcontroller name="SiriRemote">
      <button id="1">Up</button>
      <button id="2">Down</button>
      <button id="3">StepBack</button>
      <button id="4">StepForward</button>
      <button id="5">OSD</button>
      <button id="6">Back</button>
      <button id="7">ActivateWindow(TVGuide)</button>
      <button id="8">AudioNextLanguage</button>
      <button id="9">NextSubtitle</button>
      <button id="11">CodecInfo</button>
    </customcontroller>
  </FullscreenLiveTV>
  <FullscreenRadio>
    <customcontroller name="SiriRemote">
      <button id="1">Up</button>
      <button id="2">Down</button>
      <button id="3">StepBack</button>
      <button id="4">StepForward</button>
      <button id="5">OSD</button>
      <button id="6">Back</button>
      <button id="11">CodecInfo</button>
    </customcontroller>
  </FullscreenRadio>
  <Visualisation>
    <customcontroller name="SiriRemote">
      <button id="9">SkipPrevious</button>
      <button id="8">SkipNext</button>
      <button id="6">FullScreen</button>
      <button id="7">OSD</button>
    </customcontroller>
  </Visualisation>
  <SlideShow>
    <customcontroller name="SiriRemote">
      <button id="1">ZoomIn</button>
      <button id="2">ZoomOut</button>
      <button id="3">PreviousPicture</button>
      <button id="4">NextPicture</button>
      <button id="6">Stop</button>
      <button id="7">Info</button>
    </customcontroller>
  </SlideShow>
  <ScreenCalibration>
    <customcontroller name="SiriRemote">
      <button id="5">NextCalibration</button>
    </customcontroller>
  </ScreenCalibration>
  <VideoOSD>
    <customcontroller name="SiriRemote">
      <button id="7">Back</button>
    </customcontroller>
  </VideoOSD>
  <VideoMenu>
    <customcontroller name="SiriRemote">
      <button id="5">Select</button>
      <button id="7">OSD</button>
    </customcontroller>
  </VideoMenu>
  <MyVideoLibrary>
    <customcontroller name="SiriRemote">
      <button id="7">Info</button>
    </customcontroller>
  </MyVideoLibrary>
  <MyVideoFiles>
    <customcontroller name="SiriRemote">
      <button id="7">Info</button>
    </customcontroller>
  </MyVideoFiles>
  <PictureInfo>
    <customcontroller name="SiriRemote">
      <button id="3">Left</button>
      <button id="4">Right</button>
    </customcontroller>
  </PictureInfo>
</keymap>
frontend: nvidia shield tv 2019 pro | apple tv 4k | sonos arc 5.1.2 | lg oled65c97la
backend: supermicro x11ssh-ctf | xeon | 64gb ecc | wd red | zfs raid-z2 | dd max s8

software: debian | proxmox | openmediavault | docker | kodi | emby | tvheadend | fhem | unifi
Reply
#33
@hoppel118 sorry for not getting back soon, we had some issues with running app on device and then other tasks Sad will test your change asap (but probably it'll be in a few days)
Reply
#34
with this change it's much more convenient Smile thanks!
 
(2019-04-25, 00:24)hoppel118 Wrote: What do you think about this function of mrmc?

2789563(post)

Do think it's possible to port this to Kodi Leia?

we already have an issue about the focus engine Smile https://github.com/SylvainCecchetto/xbmc/issues/45
Reply
#35
Perfect! Smile
frontend: nvidia shield tv 2019 pro | apple tv 4k | sonos arc 5.1.2 | lg oled65c97la
backend: supermicro x11ssh-ctf | xeon | 64gb ecc | wd red | zfs raid-z2 | dd max s8

software: debian | proxmox | openmediavault | docker | kodi | emby | tvheadend | fhem | unifi
Reply
#36
Short questions:

1. what is the "ir play" stuff? What does the ir stand for? Infrared?
2. is there a way to program a button as "hold right side and press" or "hold left and press" to make it behave more like in other apps like Netflix etc.? So forward is not just "touch right" but "touch right and press" for example?
Reply
#37
Can anyone point me in the right direction to get a keymap that'll work with my mac. I found an app that allows me to pair it, but all I'm getting is play/pause and menu goes to the beginning in full screen video.
Reply
#38
What is the latest working keymap in this thread for Apple TV 4K remote and Kodi 19.3?

This default one is pretty horrible. Smile

Thanks!
Reply
#39
I wonder the same , i cant get keymap addon to work on Tvos 🤔
Reply
#40
Hi, I don’t use my Apple TV with Kodi at the moment. I am using the Nvidia Shield.

Did you try my keymap 6-7 posts above yours?

Regards Hoppel
frontend: nvidia shield tv 2019 pro | apple tv 4k | sonos arc 5.1.2 | lg oled65c97la
backend: supermicro x11ssh-ctf | xeon | 64gb ecc | wd red | zfs raid-z2 | dd max s8

software: debian | proxmox | openmediavault | docker | kodi | emby | tvheadend | fhem | unifi
Reply
#41
I've made some edits to .xml file, but not sure how to transfer it from my iMac to Kodi 19.3 on Apple TV 4K. Smile

I've followed instructions from this thread, but when I set the location folder and browsed it through Kodi on Apple TV - the folder on iMac appears to be empty even when it's not (the xml file is there and some other stuff).

Is there a setting or something like that in Kodi to show hidden/xml files or something?

EDIT: I've managed to do it through FTP/remote server.
Reply
#42
Is there no way to prevent closing to home screen when pressing back? Can it be configured to bring up the shutdown menu instead?
Reply

Logout Mark Read Team Forum Stats Members Help
Apple TV 4K - Kodi custom keymap for the SiriRemote0