Kodi Community Forum

Full Version: How to map Picture section remote buttons?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

There are sections for both <MyVideoFiles> and <MyMusicFiles> in remote and keyboard.xml

However there's nothing specified about pictures.

I've tried to make the "play" button trigger random slideshow in current folder instead of just opening the selected picture.

I tried this:

<MyPictureFiles><remote><play>RecursiveSlideShow()</play></remote></MyPictureFiles>

Didn't work.

I've checked the faq and can't find any information on it, any ideas?
You want something like:

Code:
<keymap>
  <MyPictures>
    <keyboard>
      <f1>SlideShow(., recursive, random)</f1>
    </keyboard>
  </MyPictures>
</keymap>

The SlideShow and RecursiveSlideShow functions require a directory as the first argument. I've just tried using ".", but this doesn't mean the directory currently being listed. I think it always gives you the top level picture directory i.e. all sources. I don't know how you would pass the "current" directory.

JR
Thanks!

But passing the current directly is what the "slideshow" button does, the "R .Slideshow includes subdirs so in theory if i can find the button in my skin maybe i can use the call it makes?

I'll play around with it, thanks for the heads up!