Loading Dynamic List Content at start
#31
how else enable PVR manager?
Reply
#32
Okay, try this.

Startup

Code:
<defaultcontrol always="true">8</defaultcontrol>
<onload>Skin.SetString(pvrtest,false)</onload>

        <control type="button" id="8">
            <onfocus>Setfocus(9)</onfocus>
        </control>
        <control type="button" id="9">
            <onfocus condition="substring(Skin.String(pvrtest),true)">Setfocus(11)</onfocus>
            <onfocus condition="substring(Skin.String(pvrtest),false)">Setfocus(10)</onfocus>
        </control>
        <control type="button" id="10">
            <onfocus>AlarmClock(UpdateDelay,ActivateWindow(3050),00:02,silent)</onfocus>
        </control>
        
        <control type="button" id="11">
            <onfocus>ReplaceWindow($INFO[System.StartupWindow])</onfocus>
        </control>

Custom dialog

Code:
<?xml version="1.0" encoding="utf-8"?>
<window type="dialog" id="3050">
    <allowoverlay>no</allowoverlay>
    <onload>AlarmClock(UpdateDelay,Dialog.Close(3050),00:02,silent)</onload>
    <onload>SetFocus(12)</onload>
    <onunload>SetFocus(9)</onunload>
    
    <animation effect="fade" start="100" end="0" time="0" delay="5">WindowClose</animation>
    <controls>

        <control type="button" id="12">
            <onfocus condition="!IsEmpty(Control.GetLabel(989898))">Skin.SetString(pvrtest,true)</onfocus>
            <onfocus condition="IsEmpty(Control.GetLabel(989898))">Skin.SetString(pvrtest,false)</onfocus>
            <onfocus>SetFocus(12)</onfocus>
        </control>
            
        <control type="list" id="989898">
            <itemlayout height="50" width="240"/>
            <focusedlayout height="50" width="240"/>
            <content target="video">pvr://channels/tv/All TV channels/</content>
        </control>

    </controls>
</window>

Seems pretty consistent on my Gotham setup (mind evt path changes in Kodi?).
If it works, It could use some nicer code like not using substrings ect. But I'm a bit short on time.
Image [RELEASE] Metroid
Image [RELEASE] IrcChat
Reply
#33
I've tried every combination, it's hit and miss. Sometimes it works, sometimes it doesn't. Really odd and not sure why.
Please read the online manual (wiki) & FAQ (wiki) before posting.

Skins: Estuary | Xperience1080
Opinion: Never purchase HTC products
Reply
#34
Hello MassIV

I just tested with your startup xml,on kodi 15 everything works ok,but still not loaded home panel automatic,I have to manually loaded home panel
with backspace button or esc button .And how you use Custom dialog xml in home panel?

Best Regards
Reply
#35
Try also putting your paths in a VAR. I forgot that was also in Blacks post for home refresh.

Code:
<variable name="PVR_Path">
    <value condition="!Window.IsVisible(3050)">pvr://channels/tv/All TV channels/</value>
</variable>


Quote:I just tested with your startup xml,on kodi 15 everything works ok,but still not loaded home panel automatic,I have to manually loaded home panel
with backspace button or esc button .And how you use Custom dialog xml in home panel?
I thought you only wanted a startup delay until all the PVR stuff was loaded.

Because you need a window load event to reload the list, the idea is to do the reload with an invisible window (and the VAR to trigger the list). For startup I tried to be sure the list could be read by actually loading and reading it in that window. Without that it doesn't always want to.

Anyway for refresh on home you should be able to just use this:

http://forum.kodi.tv/showthread.php?tid=...pid1697894

Make sure to use a different window ID.
Image [RELEASE] Metroid
Image [RELEASE] IrcChat
Reply
#36
Tray this in Startup.xml just rename
<onfocus>ReplaceWindow(Home)</onfocus> in to <onfocus>ReplaceWindow(accesspoints)</onfocus>

I use this because my skin doesent have DialogAccessPoints.xml
create new xml

DialogAccessPoints.xml
Code:
    <!-- Aeon MQ 6 Helix  -->

    <window>
    <defaultcontrol always="true">9005</defaultcontrol>
    <coordinates>
    <system>1</system>
    <posx>0</posx>
    <posy>0</posy>
    </coordinates>
    <controls>
    <control type="textbox" id="400">
    <left>420</left>
    <top>340</top>
    <width>400</width>
    <height>200</height>
    <align>justify</align>
    <label>If you d'not want to wait to load PVR ,pres button</label>
    <textcolor>FFFFFAF0</textcolor>
    <font>Font_18A</font>
    </control>
    <control type="image">
    <left>414</left>
    <top>300</top>
    <width>400</width>
    <height>200</height>
    <texture>menu_glass.png</texture>
    <colordiffuse>70FFFAF0</colordiffuse>
    </control>
    <control type="grouplist" id="9005">
    <posx>480</posx>
    <posy>400</posy>
    <control type="button" id="17"><!-- Clear -->
    <width>240</width>
    <onclick>ReplaceWindow(Home)</onclick>
    <onclick>Dialog.Close(accesspoints)</onclick>
    <include>SettingsBottomButton</include>
    <label>Load Home</label>
    </control>
    </control>
    </controls>

    </window>

This work for me in AeonMQ5 & 6 , if you want to automatize start need to have new button <onfocus condition=......
For me this is ok ( just to put some Background picture ) Smile

Image

My Kodi is version 15 alpha,PVR is SimpleIPTV with 1834 channels,epg with more then 1000 tags...its litlle slowwwwww but this work
XBoxMediaCenter (Kodi Matrix ) 19.3 , AndroidBox -Matrix Skin AeonMQ6
Reply
#37
I'm still getting a hit or miss load, I think I'll use the long method to get this working as it's always reliable. Thank you all for the help, though. Or it could be my PVR client, but I don't see why...

Do either of you have a git version that includes your working changes? And, have you tested with the demo client?
Please read the online manual (wiki) & FAQ (wiki) before posting.

Skins: Estuary | Xperience1080
Opinion: Never purchase HTC products
Reply
#38
I just tested everything is ok,except my boot intro running and running until I press button enter.
I'll try to fix this if is possible.

Thank you Angelinas
Reply
#39
I was using IPTV Simple on Gotham. What skin / version is this for?
Image [RELEASE] Metroid
Image [RELEASE] IrcChat
Reply
#40
Write in Code ,I ask author @MarcosQui to give me permission to public video of loading dynamic list in his new skin.(only part with loading,part of home,and part of TV).
Of course , dynamic list will be on home screen.
Skin AeonMQ6
Kodi v15i (with my pull request-not aproved yet,some changes need)
IPTV Simple my version which support changes in pull request

Edit:
I got permission to public this video Smile
Look for your self how works.
XBoxMediaCenter (Kodi Matrix ) 19.3 , AndroidBox -Matrix Skin AeonMQ6
Reply
#41
(2015-01-29, 21:08)MassIV Wrote: I was using IPTV Simple on Gotham. What skin / version is this for?

I'm adding it to 1080XF and Xperience1080 (maintaining it but not released).
Please read the online manual (wiki) & FAQ (wiki) before posting.

Skins: Estuary | Xperience1080
Opinion: Never purchase HTC products
Reply
#42
Hello

This is my final solution.

Custom_Loading.xml

Quote:<window id="1100">
<defaultcontrol>1</defaultcontrol>
<allowoverlay>yes</allowoverlay>



<controls>
<control type="group">
<posx>0</posx>
<posy>0</posy>


<control type="button" id="1">
<posx>0</posx>
<posy>-100</posy>
<width>1920</width>
<height>1300</height>
<label></label>
<font></font>
<onclick>ReplaceWindow(1100)</onclick>
<onfocus>AlarmClock(UpdateDelay,ActivateWindow(0),00:30,silent)</onfocus>
<texturefocus>demo/1.jpg</texturefocus>
<aspectratio>scale</aspectratio>
<onleft>-</onleft>
<onright></onright>
<onup>-</onup>
<ondown>-</ondown>
</control>


</control>
</controls>
</window>


Startup.xml
<window id="2999">
<defaultcontrol always="true">10</defaultcontrol>
<allowoverlay>yes</allowoverlay>
<onload condition="Window.Previous(29) + Skin.SetString(signin,3030)">Skin.SetString(signin,3030)</onload>
<onload condition="!Window.Previous(29) + !Skin.SetString(signin,3030)">Skin.SetString(signin,3030)</onload>








<controls>
<include>Common_Busy</include>
<control type="button" id="10">
<onfocus>ReplaceWindow(1100)</onfocus>
<onfocus condition="IsEmpty(Skin.String(GamerPicture))">Skin.SetString(GamerPicture,special://skin/system/D400040/gamertag/pictures/Master user.png)</onfocus>
<onfocus condition="IsEmpty(Skin.String(GamerColor))">Skin.SetString(GamerColor,special://skin/system/D400040/colors/Bland 50%/black.png)</onfocus>
<onfocus condition="IsEmpty(Skin.String(GamerTheme))">Skin.SetString(GamerTheme,special://skin/system/0200020/start.jpg)</onfocus>
</control>

</controls>
<onload>Skin.SetString(snapxp,1117)</onload>
<onload>Skin.SetString(music,3033)</onload>
<onload>Skin.SetString(video,3033)</onload>
<onload>Skin.SetString(Xbox One First Start,101)</onload>
<onload condition="Skin.String(row,18)">PlayMedia(special://skin/system/0100010/boot.mp4,0,)</onload>
<onload condition="!Skin.String(row,18)">PlayMedia(special://skin/system/0100010/Intro.mp4,0,)</onload>
<onload>special://skin/system/0300030/bing.py</onload>

<onload>special://skin/system/D400040/gamertag/pictures/$INFO[System.ProfileName].png</onload>
<onunload Condition="!System.InternetState">Notification(Hi[CR]$INFO[System.ProfileName] ,Singed In,00:59,special://skin/system/D400040/gamertag/pictures/$INFO[System.ProfileName].png)</onunload>
</window>

In Custom_Loading.xml you can adjust the loading time,depending on how many channels you have.Unfortunately I do not have a lot of channels .

<onfocus>AlarmClock(UpdateDelay,ActivateWindow(0),00:30,silent)</onfocus>

This is a short video

Reply
#43
In this way no need to press any buttons, home panel will be loaded automatically.

Best Regards
Reply
#44
That's a very pretty pvr loading solution, I'll take a look. Do you have those on git somewhere?
Please read the online manual (wiki) & FAQ (wiki) before posting.

Skins: Estuary | Xperience1080
Opinion: Never purchase HTC products
Reply
#45
Hello Piers

I do not have on github,I needed to publish new skin a few days ago.
But a lot of times I lost on this.In my case it works quite ok. this combination,you can try it.

Last time I forgot to say thank to everyone who have participated in solving this problem.

Best Regards
Reply

Logout Mark Read Team Forum Stats Members Help
Loading Dynamic List Content at start0