How to play trailer on small window slide view mode?
#1
Hello

I want to know to how to make trailer playing on small window selected movie.
In transparent skin, with slide view, there is film reel icon on the right top. It looks working with <onclick>.

I found that one in the code.


<control type="button" id="7008">
                <left>1720</left>
                <top>90</top>
                <width>72</width>
                <height>72</height>
                <label></label>
                <font></font>
                <texturefocus>trailer-focus.png</texturefocus>
                <texturenofocus>trailer-nofocus.png</texturenofocus>
                <onup>9000</onup>
                <ondown>596</ondown>
                <onleft>9000</onleft>
                <onright>9000</onright>
                <onclick condition="Skin.HasSetting(Fullscreen_Trailer)">PlayMedia("$INFO[ListItem.Trailer]")</onclick>
                <onclick condition="!Skin.HasSetting(Fullscreen_Trailer)">PlayMedia("$INFO[ListItem.Trailer]",1)</onclick>
                <visible>!Skin.HasSetting(Hide_Trailer_Icon) + !String.IsEmpty(Listitem.Trailer)</visible>
            </control>

My plan is.. it will perform via <onfocus> not <onclick>

Which means for example


<control type="button" id="7008">
                <left>1720</left>
                <top>90</top>
                <width>72</width>
                <height>72</height>
                <label></label>
                <font></font>
                <texturefocus>trailer-focus.png</texturefocus>
                <texturenofocus>trailer-nofocus.png</texturenofocus>
                <onup>9000</onup>
                <ondown>596</ondown>
                <onleft>9000</onleft>
                <onright>9000</onright>
                <onfocus condition="Control.HasFocus(596)">PlayMedia("$INFO[ListItem.Trailer]")</onfocus>
                <onfocus condition="!Control.HasFocus(596)">PlayMedia("$INFO[ListItem.Trailer]",1)</onfocus>

                <visible>!Skin.HasSetting(Hide_Trailer_Icon) + !String.IsEmpty(Listitem.Trailer)</visible>
</control>

Not sure it is working or not because I have no idea how to create small window displaying trailer via You Tube addon.

Please help me out?
Reply



Logout Mark Read Team Forum Stats Members Help
How to play trailer on small window slide view mode?0
This forum uses Lukasz Tkacz MyBB addons.