Kodi Community Forum

Full Version: [Help] Need a way to play a trailer with a remote controlbutton press
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
As the title says. I have tried putting "skin commands" into the keymap file, and as expected, that is not working.

Here is what I have tried:
Quote:<F3>PlayMedia($INFO[ListItem.Trailer])</F3>


From the XBMC Help Files:
Quote:Plays the media. This can be a playlist, music, or video file, directory, plugin or an Url.

A trailer IS a video file, so there has to be a way to do it Wink

So.... exactly can I add code to play a selected movie in the library, with a remote control button. (WAF is not so good having to bring up a context dialog,and scroll down to play trailerSmile )
Try:

Code:
<F3>XBMC.PlayMedia($INFO[ListItem.Trailer])</F3>

PlayMedia isn't supported as keymap action, see: http://wiki.xbmc.org/index.php?title=Keymap#Actions
You have to use XBMC.(your function) when you want to use built-in functions in your keymap file.
A list of all built-in functions: http://wiki.xbmc.org/index.php?title=Lis..._functions
(2013-04-29, 13:54)Bombaij Wrote: [ -> ]Try:

Code:
<F3>XBMC.PlayMedia($INFO[ListItem.Trailer])</F3>

PlayMedia isn't supported as keymap action, see: http://wiki.xbmc.org/index.php?title=Keymap#Actions
You have to use XBMC.(your function) when you want to use built-in functions in your keymap file.
A list of all built-in functions: http://wiki.xbmc.org/index.php?title=Lis..._functions

That is the page in the help file that I quoted the information in my first post from Wink

I do not see a way to play a trailer on that page, or in any other help files. After doing a lot of research and trial and error, I decided to post and ask if someone had a way to do it. Either with a direct keymap link, or a way of defining a key in XBMC to play a trailer ect.