2020-05-24, 13:16
Hello
I have installed YOUTUBE addon and set private API then finally I can see my movie trailer.
BTW, I want to make GUI buttons to play movie trailer directly not thru context menu. Currently, I set view mode as poster/Big fanart, so I can move left <-> right to each of my movies. So, my plan is I will place one small GUI buttons at somewhere in selected movie poster box.
To do that, what I need to do?
I just tried that below but it didn't work.
Please tell me what I need to more to play trailer to selected movie?
Thank you
I have installed YOUTUBE addon and set private API then finally I can see my movie trailer.
BTW, I want to make GUI buttons to play movie trailer directly not thru context menu. Currently, I set view mode as poster/Big fanart, so I can move left <-> right to each of my movies. So, my plan is I will place one small GUI buttons at somewhere in selected movie poster box.
To do that, what I need to do?
I just tried that below but it didn't work.
xml:<control type="image">
<left>200</left>
<top>300</top>
<width>100</width>
<height>50</height>
<texture>osd/trailer.png</texture>
<onclick>PlayMedia($INFO[ListItem.Trailer],noresume)</onclick>
</control>
Please tell me what I need to more to play trailer to selected movie?
Thank you