Kodi Community Forum

Full Version: RSS feeds on VideoFullscreen.xml mod
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to add an RSS ticker to Confluence. I've edited VideoFullscreen.xml, and the ticker starts going across, but there is no background behind the ticker. The RSS feeds do work, I am grabbing them from a local server on my network http://rss/feed.

Can anyone help me?

This is what I've added


<control type="image">
<description>RSS background</description>
<posx>0</posx>
<posy>0</posy>
<width>860</width>
<height>35</height>
<texture border="32,0,0,0">Rss_Back.png</texture>
<visible>true</visible>
</control>
<control type="image">
<description>RSS background</description>
<posx>0</posx>
<posy>0</posy>
<width>100</width>
<height>35</height>
<texture border="32,0,0,0">Rss_Back_Overlay.png</texture>
<visible>true</visible>
</control>
<control type="rss" id="1">
<description>Video overlay rss feeds</description>
<posx>0</posx>
<posy>30r</posy>
<width>1280</width>
<visible>true</visible>
<font>font14</font>
<textcolor>FFB2D4F5</textcolor>
<headlinecolor>FFFFFFFF</headlinecolor>
<titlecolor>FF655656</titlecolor>
<urlset>1</urlset>
</control>
<rssfeeds>
<set id="1">
<feed updateinterval="30">http://rss/feed</feed>
</set>
</rssfeeds>
Bump!
Can anyone help?
Hey smolnar, I've been trying to "hack" this into every skin I've used pretty much but been unsuccessful and nor have I really had the time to sit down and nut it out as I'm no xbmc skinning. After reading this post though and having few days spare I've managed to get it working with it's background and pulling from the rssfeeds.xml file however it is only displaying during the overlay when changing the screen resolution or popping up the overlay with the tech details about the playing file as shown in the below image.

Image

If you or anyone else out there can solve this to show during the fullscreen correctly and not just the overlays your a legend Big GrinNod

Here's the code for my rss modified VideoFullScreen.xml file from the latest Confulence skin at the svn repository.

Code:
<window id="2005">
<defaultcontrol>-</defaultcontrol>
    <controls>
<control type="group">
            <posx>0</posx>
            <posy>38r</posy>
            <allowoverlay>yes</allowoverlay>
            <visible>true</visible>
<control type="image">
            <posx>0</posx>
            <posy>33r</posy>
            <width>1950</width>
            <height>53</height>
            <colordiffuse>DAFFFFFF</colordiffuse>
            <texture>HomeBlade_bottom.png</texture>
        </control>
        <control type="rss">
            <description>RSS feed</description>
            <posx>0</posx>
            <posy>38r</posy>
            <height>35</height>
            <width>1250</width>
            <font>font24_title</font>
            <urlset>1</urlset>
            <textcolor>blue</textcolor>
            <titlecolor>blue</titlecolor>
            <headlinecolor>lightblue</headlinecolor>
            <visible>system.getbool(lookandfeel.enablerssfeeds)</visible>
        </control>
</control>
        <!-- codec infos -->
        <control type="image">
            <description>media info background image</description>
            <posx>0</posx>
            <posy>30</posy>
            <width>1280</width>
            <height>130</height>
            <texture>black-back.png</texture>
        </control>
        <control type="label" id="10">
            <description>row 1 label</description>
            <posx>50</posx>
            <posy>40</posy>
            <label>-</label>
            <align>left</align>
            <font>font12</font>
            <include>VisibleFadeEffect</include>
        </control>
        <control type="label" id="11">
            <description>row 2 label</description>
            <posx>50</posx>
            <posy>70</posy>
            <label>-</label>
            <align>left</align>
            <font>font12</font>
            <include>VisibleFadeEffect</include>
        </control>
        <control type="label" id="12">
            <description>row 3 label</description>
            <posx>50</posx>
            <posy>100</posy>
            <label>-</label>
            <align>left</align>
            <font>font12</font>
            <include>VisibleFadeEffect</include>
        </control>
    </controls>
</window>

I'm sure there's probably some useless code in there too but like I said I'm no skinner.
Here's how I did it:

Create a separate xml for your rss feed and name it custom_bottomline_1199.xml and save it in the 720p folder. Make sure it begins with "custom_" and ends with "_####" where #### is a new unique WindowID - 1199 is probably a safe bet.

Then edit your keymaps\keyboard.xml file and find the section beginning:
Code:
<FullscreenVideo>
    <keyboard>

Then add

        <b>XBMC.ActivateWindow(1199)</b>
This sets the "b" key to open the rss feed.

That's it -- hope it helps

For reference, here's my custom_bottomline_1199.xml

Code:
<window type="dialog" id="1199">
<defaultcontrol always="true">9000</defaultcontrol>
    <controls>
        <control type="image">
            <posx>0</posx>
            <posy>680</posy>  
            <width>1280</width>    
            <height>192</height>
            <texture>common/rss_back.png</texture>
            <colordiffuse>ff15efd9</colordiffuse>
        </control>
        <control type="rss" id="2">
            <posx>10</posx>
            <posy>680</posy>
            <width>1260</width>
            <height>40</height>
            <aligny>bottom</aligny>
            <font>Font_RSS_Unicode</font>
            <textcolor>mainblue</textcolor>
            <headlinecolor>white</headlinecolor>
            <highlightcolor>white</highlightcolor>
            <titlecolor>mainblue</titlecolor>
            <urlset>1</urlset>
            <animation effect="fade" start="100" end="0" time="400">WindowClose</animation>
            <animation effect="fade" start="0" end="100" time="400">WindowOpen</animation>
        </control>
        
    </controls>
</window>
Hey stoli thanks for the help I didn't want the lose the function of b so I realised from your post I could simply replace the controls with the rss controls at the loss of the visual overlay info when switching resolutions or checking the file tech info which I don't really need or use and the resolution can of course still be set through the video settings from the OSD overlay. So I now have rss feeds on full screen video thanks that I can turn on and off easily with the black button cheers for you help.

If anyone wants it heres the code from my VideoFullScreen.xml file which Ive set to have two feeds from diff sets, one scrolling across the top and one the bottom. You will probably have to play with the positioning a little for your screen as these have been set for my old crappy low def lol
Code:
<window id="2005">
<defaultcontrol>-</defaultcontrol>
    <controls>
<control type="image" id="3">
            <posx>0</posx>
            <posy>29r</posy>
            <width>1950</width>
            <height>30</height>
            <texture>black-back.png</texture>
        </control>
        <control type="rss" id="1">
            <description>RSS feed</description>
            <posx>0</posx>
            <posy>35r</posy>
            <height>35</height>
            <width>1250</width>
            <font>font13_title</font>
            <urlset>2</urlset>
            <textcolor>blue</textcolor>
            <titlecolor>blue</titlecolor>
            <headlinecolor>lightblue</headlinecolor>
            <visible>system.getbool(lookandfeel.enablerssfeeds)</visible>
            <animation effect="fade" start="100" end="0" time="400">WindowClose</animation>
            <animation effect="fade" start="0" end="100" time="400">WindowOpen</animation>
        </control>
<control type="image" id="4">
            <posx>0</posx>
            <posy>0</posy>
            <width>1950</width>
            <height>22</height>
            <texture>black-back.png</texture>
        </control>
        <control type="rss" id="2">
            <description>RSS feed</description>
            <posx>0</posx>
            <posy>-10</posy>
            <height>35</height>
            <width>1250</width>
            <font>font13_title</font>
            <urlset>3</urlset>
            <textcolor>blue</textcolor>
            <titlecolor>blue</titlecolor>
            <headlinecolor>lightblue</headlinecolor>
            <visible>system.getbool(lookandfeel.enablerssfeeds)</visible>
            <animation effect="fade" start="100" end="0" time="400">WindowClose</animation>
            <animation effect="fade" start="0" end="100" time="400">WindowOpen</animation>
        </control>
    </controls>
</window>
Pretty much the same as the previous posted screen shot except without the tech details overlay and another feed going across the top.