2021-11-05, 15:53
Hello
I don't know why it does not work. I just have simplified my code to test only.
It closes Kodi itself.
Startup.xml
I don't know why it does not work. I just have simplified my code to test only.
It closes Kodi itself.
Startup.xml
custom_1114_start.xmlxml:
<window>
<onload>ReplaceWindow(1114)</onload>
<controls />
</window>
xml:
<window type="dialog" id="1114">
<defaultcontrol always="true">10</defaultcontrol>
<controls>
<control type="button" id="10">
<onfocus>PlayMedia(special://skin/extra/myvideo.mp4,1)</onfocus>
<onfocus>SetFocus(11)</onfocus>
</control>
<control type="button" id="11">
<onfocus>AlarmClock(Close,Dialog.Close(1114),00:04,silent)</onfocus>
<onfocus>AlarmClock(Starting,ReplaceWindow($INFO[System.StartupWindow]),00:05,silent)</onfocus>
</control>
<control type="group">
<visible>Player.HasVideo</visible>
<control type="videowindow">
<width>$INFO[System.ScreenWidth]</width>
<height>$INFO[System.ScreenHeight]</height>
</control>
</control>
</controls>
</window>