i am trying to display media flags in the seekbar, i have them working, but the issue i have is trying to get kodi to tell the difference between playing a trailer file vs playing a movie file.
currently i am using:
but it only seems to catch when i play the trailer the second time.
trailers are named movie-trailer.mp4 annd each is in the respective movie folder
IE:
and it's Variable:
the first play of a trailer the blu-ray flag is visible, but if i stop it and play it again, it is not visible.
is there a better way to tell if kodi is playing a trailer?
currently i am using:
Code:
<visible>!String.Containsl(Player.Filename,movie-trailer) + Window.IsVisible(seekbar) | !String.Contains(Player.Filename,movie-trailer) + Window.IsVisible(fullscreeninfo) | !String.Contains(Player.Filename,movie-trailer) + Window.IsVisible(VideoOSD)</visible>
but it only seems to catch when i play the trailer the second time.
trailers are named movie-trailer.mp4 annd each is in the respective movie folder
IE:
Code:
<control type="image" id="1">
<top>805</top>
<left>1020</left>
<width>60</width>
<height>40</height>
<animation effect="slide" end="0,-75" time="200" condition="Window.IsVisible(VideoOSD)">Conditional</animation>
<textcolor>$VAR[TextColor1]</textcolor>
<texture>$VAR[VideoSourceFlag]</texture>
<visible>!String.IsEqual(Player.Filename,movie-trailer) + Window.IsVisible(seekbar) | !String.Contains(Player.Filename,movie-trailer) + Window.IsVisible(fullscreeninfo) | !String.Contains(Player.Filename,movie-trailer) + Window.IsVisible(VideoOSD)</visible>
</control>
and it's Variable:
Code:
<!--Video Source Flag-->
<variable name="VideoSourceFlag">
<value condition="[String.Contains(Player.Filename,Blu-ray.)]">flags/bluray.png</value>
<value>$INFO[Player.Filename]</value>
</variable>
the first play of a trailer the blu-ray flag is visible, but if i stop it and play it again, it is not visible.
is there a better way to tell if kodi is playing a trailer?