Kodi Community Forum

Full Version: Startup Video
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
xml:

<window>
    <onload>ReplaceWindow(1114)</onload>
    <controls />
</window>
custom_1114_start.xml
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>
I think it's cause you use it as a dialog.

try just
<window id="1114">
(2021-11-05, 17:03)mardukL Wrote: [ -> ]I think it's cause you use it as a dialog.

try just
<window id="1114">

Thank you, Yes, it works with <window id="1114">.
However, one thing I have faced problem is
When I have installed plexcondiconnect addon, normally it shows plexcondiconnect addon welcome window, then I can continue to set up, but
with this(my code), it will not.
When I removed
Startup.xml
xml:

<window>
        <!-- <onload>ReplaceWindow(1114)</onload> -->
        <controls />
</window>
Then it shows plexcondiconnect welcome window and can continue setting.

I think it needs some condition there but I don't know.
Do you have any idea how to make some conditions to show plexcondiconnect addon setting window after addon installing?
(2021-11-06, 09:21)kenmoon Wrote: [ -> ]
(2021-11-05, 17:03)mardukL Wrote: [ -> ]I think it's cause you use it as a dialog.

try just
<window id="1114">

Thank you, Yes, it works with <window id="1114">.
However, one thing I have faced problem is
When I have installed plexcondiconnect addon, normally it shows plexcondiconnect addon welcome window, then I can continue to set up, but
with this(my code), it will not.
When I removed
Startup.xml
xml:

<window>
        <!-- <onload>ReplaceWindow(1114)</onload> -->
        <controls />
</window>
Then it shows plexcondiconnect welcome window and can continue setting.

I think it needs some condition there but I don't know.
Do you have any idea how to make some conditions to show plexcondiconnect addon setting window after addon installing?
I fixed by myself.

xml:

<onload condition="!Window.Previous(Home) + !System.HasLoginScreen ">ReplaceWindow(1114)</onload>
<onload condition="Window.Previous(Home) | System.HasLoginScreen ">ReplaceWindow($INFO[System.StartupWindow])</onload>