2019-07-17, 03:35
Hi all.
I am fairly new to skinning so apologies in advance...
I am trying to create a condition whereby the default selected button is different than that of the default when a certain string of text exists in the TvShowTitle.
So when the word Live starts in the TvShowTitle, the default button is 15(Stop) and not 14.
My VideoOSD from my eminence skin looks like this
I have used the condition method and !String.StartsWith in various other places in the skin and this works fine: !String.StartsWith(VideoPlayer.TvShowTitle,Live)
However as VideoOSD.xml sets this as 14, I cannot find a way to say use 15 is there is a matching condition of !String.StartsWith(VideoPlayer.TvShowTitle,Live)
Any advice? I have battled for a little while now.
Thank you.
I am fairly new to skinning so apologies in advance...
I am trying to create a condition whereby the default selected button is different than that of the default when a certain string of text exists in the TvShowTitle.
So when the word Live starts in the TvShowTitle, the default button is 15(Stop) and not 14.
My VideoOSD from my eminence skin looks like this
VideoOSD.xml:<?xml version="1.0" encoding="UTF-8"?>
<window>
<defaultcontrol always="true">14</defaultcontrol>
<onunload>ClearProperty(osdinfo,home)</onunload>
<controls>
<include>Window_OSD</include>
<control type="slider">
<width>100%</width>
<bottom>64</bottom>
<height>16</height>
<texturesliderbar>-</texturesliderbar>
<textureslidernib>-</textureslidernib>
<textureslidernibfocus>-</textureslidernibfocus>
<info>Player.Progress</info>
<action>seek</action>
</control>
</controls>
</window>
I have used the condition method and !String.StartsWith in various other places in the skin and this works fine: !String.StartsWith(VideoPlayer.TvShowTitle,Live)
However as VideoOSD.xml sets this as 14, I cannot find a way to say use 15 is there is a matching condition of !String.StartsWith(VideoPlayer.TvShowTitle,Live)
Any advice? I have battled for a little while now.
Thank you.