2013-11-26, 02:12
I just spent a few minutes working through the problem of the OSD not being able to be turned off when launching an intro video using the Startup.xml
Basically, you use the <onfocus></onfocus> condition to enable the OSD Action when the XBMC window comes into focus on the system. Since the video launches the OSD when booting up, the two calls effectively cancel one another out an, VOILA, the OSD is no longer present.
This is for a Windows machine with the Intro.mp4 residing in the default userdata folder. You will have to change this to whatever your path and filename for the intro movie are for your application. Enjoy!
Basically, you use the <onfocus></onfocus> condition to enable the OSD Action when the XBMC window comes into focus on the system. Since the video launches the OSD when booting up, the two calls effectively cancel one another out an, VOILA, the OSD is no longer present.
This is for a Windows machine with the Intro.mp4 residing in the default userdata folder. You will have to change this to whatever your path and filename for the intro movie are for your application. Enjoy!
Code:
<window>
<onfocus>OSD</onfocus>
<onload>PlayMedia("C:\Program Files (x86)\XBMC\userdata\Intro.mp4")</onload>
<defaultcontrol always="true">10</defaultcontrol>
<allowoverlay>no</allowoverlay>
<controls>
<control type="button" id="10">
<onfocus>ReplaceWindow(Home)</onfocus>
<texturenofocus>-</texturenofocus>
<texturefocus>-</texturefocus>
<animation effect="fade" delay="1000" end="100">Focus</animation>
</control>
</controls>
</window>