Posts: 24
Joined: Oct 2008
Reputation:
0
mrQQ
Junior Member
Posts: 24
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.
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
2010-05-10, 02:32
(This post was last modified: 2010-05-10, 02:36 by kraqh3d.)
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.
Posts: 24
Joined: Oct 2008
Reputation:
0
mrQQ
Junior Member
Posts: 24
Hm.. i'm very new to xbmc, and can't come up with an idea how to setup a shortcut for a trailer.
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
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.
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
you cannot call info labels from the keymap.
Posts: 1,163
Joined: May 2008
Reputation:
7
Waffa
Posting Freak
Posts: 1,163
2010-05-10, 17:26
(This post was last modified: 2010-05-10, 17:36 by Waffa.)
Oops, did not know.
Thanks spiff
edit :
It should be possible with...(Built in function)
<..>SendClick(windowid,id)</..>
<..>SendClick(2003,11)</..>
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
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.