intro movie instead of splash
#1
I've created a small 10 sec mp4 that i would like to play on startup instead of of the splash. I have tried everything I can find about the subject. I put the mp4 in the skins root folder. I have added  <onload condition="Window.Previous(startup)">XBMC.PlayMedia(special://skin/intro.mp4)</onload> to the startup xml. i have done the advanced settings for no splash. Is this just not compatible with this skin or am I doing something wrong? thanks for any input you guys can give me.
Reply
#2
I would say Window.Previous might probably not the correct one to use as that will only return 'true' if you leave that window:

Window.Previous(window) - Returns true if the window with id or title ?window? is being moved from. .... Only valid while windows are changing.


You should probably check if the startup window is active and if that´s the case, play the media.

This is not tested, but if I look at the vanilla startup.xml:

xml:

<?xml version="1.0" encoding="UTF-8"?>
<window>
    <onload>ReplaceWindow($INFO[System.StartupWindow])</onload>
    <onload condition="Window.IsActive($INFO[System.StartupWindow])">PlayMedia(path_to_media.mp4)</onload>
    <controls />
</window>

So the general idea I have in that case is, that you load the startup window and if that is active you play the specific media. It might be, that you will see the startup window for a short time.

The splash you deactivcated has nothing to do with the skin itself, because IIRC the splash is loaded by core code and not by the skin.
Reply
#3
ok, I was able to test, but that doesn't work. So give us some time please. Need to investigate more Wink
Reply
#4
I took a deeper look and it seems there´s much more needed to get an intro video.

Probably take a look here: https://github.com/xbmc/repo-skins/blob/...tartup.xml

Maybe this helps you in a bit
Reply
#5
(2019-05-03, 13:52)DaVu Wrote: I took a deeper look and it seems there´s much more needed to get an intro video.

Probably take a look here: https://github.com/xbmc/repo-skins/blob/...tartup.xml

Maybe this helps you in a bit

thank you very much for the help. It might be a little too much for me just to add a short clip. just thought it would be a nice touch for the family
Reply
#6
Here's a slimmed down version that should work for your needs.

xml:
<?xml version="1.0" encoding="UTF-8"?>
<window>
    <defaultcontrol>10</defaultcontrol>
    <onunload>PlayerControl(Stop)</onunload>
    <controls>
        <control type="button" id="10">
            <left>-10</left>
            <width>1</width>
            <height>1</height>
            <onfocus>PlayMedia(special://skin/extras/intro.mp4,1)</onfocus>
            <onfocus>SetFocus(11)</onfocus>
            <animation effect="fade" end="100" time="100">Focus</animation>
        </control>
        <control type="button" id="11">
            <left>-10</left>
            <width>1</width>
            <height>1</height>
            <onup>ReplaceWindow($INFO[System.StartupWindow])</onup>
            <ondown>ReplaceWindow($INFO[System.StartupWindow])</ondown>
            <onleft>ReplaceWindow($INFO[System.StartupWindow])</onleft>
            <onright>ReplaceWindow($INFO[System.StartupWindow])</onright>
            <onclick>ReplaceWindow($INFO[System.StartupWindow])</onclick>
            <onfocus>ReplaceWindow($INFO[System.StartupWindow])</onfocus>
            <animation effect="fade" end="100" time="17100">Focus</animation>
        </control>
        <control type="group">
            <visible>Player.HasVideo</visible>
            <control type="image">
                <include>FullscreenDimensions</include>
                <texture>black.png</texture>
            </control>
            <control type="videowindow">
                <include>FullscreenDimensions</include>
            </control>
        </control>
    </controls>
</window>

All you need do then is add your intro video to the skin folder -

code:
skin/extras/intro.mp4
Reply
#7
(2019-05-04, 08:49)Hitcher Wrote: Here's a slimmed down version that should work for your needs.

xml:
<?xml version="1.0" encoding="UTF-8"?>
<window>
    <defaultcontrol>10</defaultcontrol>
    <onunload>PlayerControl(Stop)</onunload>
    <controls>
        <control type="button" id="10">
            <left>-10</left>
            <width>1</width>
            <height>1</height>
            <onfocus>PlayMedia(special://skin/extras/intro.mp4,1)</onfocus>
            <onfocus>SetFocus(11)</onfocus>
            <animation effect="fade" end="100" time="100">Focus</animation>
        </control>
        <control type="button" id="11">
            <left>-10</left>
            <width>1</width>
            <height>1</height>
            <onup>ReplaceWindow($INFO[System.StartupWindow])</onup>
            <ondown>ReplaceWindow($INFO[System.StartupWindow])</ondown>
            <onleft>ReplaceWindow($INFO[System.StartupWindow])</onleft>
            <onright>ReplaceWindow($INFO[System.StartupWindow])</onright>
            <onclick>ReplaceWindow($INFO[System.StartupWindow])</onclick>
            <onfocus>ReplaceWindow($INFO[System.StartupWindow])</onfocus>
            <animation effect="fade" end="100" time="17100">Focus</animation>
        </control>
        <control type="group">
            <visible>Player.HasVideo</visible>
            <control type="image">
                <include>FullscreenDimensions</include>
                <texture>black.png</texture>
            </control>
            <control type="videowindow">
                <include>FullscreenDimensions</include>
            </control>
        </control>
    </controls>
</window>

All you need do then is add your intro video to the skin folder -

code:
skin/extras/intro.mp4

thanks for the help Hitcher, but it was a no go. Just a black screen until home popped up.
Reply
#8
Sorry, replace

xml:
<include>FullscreenDimensions</include>

with

xml:
<width>$INFO[System.ScreenWidth]</width>
<height>$INFO[System.ScreenHeight]</height>
Reply
#9
(2019-05-05, 08:55)Hitcher Wrote: Sorry, replace

xml:
<include>FullscreenDimensions</include>

with

xml:
<width>$INFO[System.ScreenWidth]</width>
<height>$INFO[System.ScreenHeight]</height>
Hitcher there are 2 lines of <include>FullscreenDimensions</include>  replace the 1st, 2nd or both.

Thanks also a question in the  <onfocus>PlayMedia(special://skin/extras/intro.mp4.1)</onfocus>  is the .1 suppose to be after the mp4
Reply
#10
Both, and that's a comma not a full stop.
Reply
#11
(2019-05-05, 22:29)Hitcher Wrote: Both, and that's a comma not a full stop.

Thanks Hitcher, still a no go. Just black screen till home pops up. Im not suppose to do anything with <texture>black.png</texture> line 30 am I? Maybe skin not able to accomplish what I want to do. Is there another you would recommend that this would work with? Thanks for your input.
Reply
#12
That's not needed actually.

I've just tested this myself in Estuary and it works perfectly.

xml:
<?xml version="1.0" encoding="UTF-8"?>
<window>
    <defaultcontrol>10</defaultcontrol>
    <onunload>PlayerControl(Stop)</onunload>
    <controls>
        <control type="button" id="10">
            <left>-10</left>
            <width>1</width>
            <height>1</height>
            <onfocus>PlayMedia(special://skin/extras/intro.mp4,1)</onfocus>
            <onfocus>SetFocus(11)</onfocus>
            <animation effect="fade" end="100" time="100">Focus</animation>
        </control>
        <control type="button" id="11">
            <left>-10</left>
            <width>1</width>
            <height>1</height>
            <onup>ReplaceWindow($INFO[System.StartupWindow])</onup>
            <ondown>ReplaceWindow($INFO[System.StartupWindow])</ondown>
            <onleft>ReplaceWindow($INFO[System.StartupWindow])</onleft>
            <onright>ReplaceWindow($INFO[System.StartupWindow])</onright>
            <onclick>ReplaceWindow($INFO[System.StartupWindow])</onclick>
            <onfocus>ReplaceWindow($INFO[System.StartupWindow])</onfocus>
            <animation effect="fade" end="100" time="17100">Focus</animation>
        </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>
Reply
#13
confirmed that the above is 100% working for me on Estuary as well

@marcmazz could you please show us the content of your startup.xml file.
Reply
#14
(2019-05-07, 07:57)DaVu Wrote: confirmed that the above is 100% working for me on Estuary as well

@marcmazz could you please show us the content of your startup.xml file.
Well guys Im officially lost. I downloaded a clean 17.6 and the only thing I changed is the startup file. I even downloaded a generic mp4 just in case the problem was with my video. Does the size of the mp4 make a difference as mine is 1280x720 and this is the android version of kodi. Just starts up, shows splash then screen turns black until home pops up. 
This is the startup xml file in the estuary skin folder:
<?xml version="1.0" encoding="UTF-8"?>
<window>
    <defaultcontrol>10</defaultcontrol>
    <onunload>PlayerControl(Stop)</onunload>
    <controls>
        <control type="button" id="10">
            <left>-10</left>
            <width>1</width>
            <height>1</height>
            <onfocus>PlayMedia(special://skin/extras/intro.mp4,1)</onfocus>
            <onfocus>SetFocus(11)</onfocus>
            <animation effect="fade" end="100" time="100">Focus</animation>
        </control>
        <control type="button" id="11">
            <left>-10</left>
            <width>1</width>
            <height>1</height>
            <onup>ReplaceWindow($INFO[System.StartupWindow])</onup>
            <ondown>ReplaceWindow($INFO[System.StartupWindow])</ondown>
            <onleft>ReplaceWindow($INFO[System.StartupWindow])</onleft>
            <onright>ReplaceWindow($INFO[System.StartupWindow])</onright>
            <onclick>ReplaceWindow($INFO[System.StartupWindow])</onclick>
            <onfocus>ReplaceWindow($INFO[System.StartupWindow])</onfocus>
            <animation effect="fade" end="100" time="17100">Focus</animation>
        </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 put the mp4 into the extras folder and renamed it intro.mp4
Reply
#15
Debug log needed.
Reply

Logout Mark Read Team Forum Stats Members Help
intro movie instead of splash0