Shortcut for trailer
#1
Hello,

I've tried looking into skins which support starting trailer from movie info screen, but I can't understand how is it done. All they have is a button with id of 11, and no onclick action anywhere.

How can I map a specific key to start a trailer from within movie list window?

Thanks.
Reply
#2
That's because the action for control ID 11 is embedded in the source code. It only works for items in the library which have a linked trailer. But there may be a way to do it as there is an info label which corresponds to the trailer for the selected item: ListItem.Trailer.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#3
Hm.. i'm very new to xbmc, and can't come up with an idea how to setup a shortcut for a trailer.
Reply
#4
I'm not sure how to do it either. You may have to use a python script to play the trailer path using that info tag.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#5
Trailer button gets visible in video infoscreen when there's an trailer url in your database or when trailer is present in your movie folder.

You can change the button in dialogvideoinfo.xml to start youtrailer script.
This script looks first if trailer is present in moviefolder then database and last you tube.
See script settings to change that.

It's also posible to add <...>ListItem.Trailer</...> to your Keymap.

This way you won't even have to open videoinfo screen to start trailer.
Reply
#6
you cannot call info labels from the keymap.
Reply
#7
Oops, did not know.
Thanks spiff

edit :
It should be possible with...(Built in function)
<..>SendClick(windowid,id)</..>
<..>SendClick(2003,11)</..>
Reply
#8
Waffa,
Have you tried that? I wouldn't expect that to work either, as it circumvents the code that invokes the info window, telling it what the currently highlighted movie is.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#9
Your right... it works only if you are in DialogVideoInfo "2003"
<..>SendClick(2003,11)</..>

Smile Looked in my keymap and this is how i did it a long time ago... I forgot it

Code:
<MovieInformation>
    <remote>
      <back>Close</back>
      <info>SendClick(2003,11)</info>
    </remote>
  </MovieInformation>

if you are on a movie and press twice the info button the trailer starts Wink
Reply
#10
Here's what you were looking for!

http://forum.xbmc.org/showpost.php?p=538...tcount=117
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply

Logout Mark Read Team Forum Stats Members Help
Shortcut for trailer0