RSS ticker: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>VTurn
(corrected referenced to urlset which are now obsolete (replaced with set ID))
>NedBot
m (Wikitable class; cosmetic changes)
Line 4: Line 4:
:'''Note:''' Don't confuse [[RSS feed Control]] with [[RSS Feeds]] which allows you to view/listen to online video/audio/picture streams.
:'''Note:''' Don't confuse [[RSS feed Control]] with [[RSS Feeds]] which allows you to view/listen to online video/audio/picture streams.


===Example===
=== Example ===
  <source lang="xml">
  <source lang="xml">
  <control type="rss" id="1">
  <control type="rss" id="1">
Line 19: Line 19:
  </source>
  </source>


===Available Tags and attributes===
=== Available Tags and attributes ===
In addition to the [[Default_Control_Tags|default control tags]], the following tags are available. Note that each tag is '''lower case only.''' This is important, as xml tags are case-sensitive.
In addition to the [[Default Control Tags|default control tags]], the following tags are available. Note that each tag is '''lower case only.''' This is important, as xml tags are case-sensitive.
{| class="dtable"
{| class="wikitable"
|- class="userrow"
|-  
| class="usercell" | '''id'''
| '''id'''
| class="usercell" | This refers to the feedset to be displayed. This is the id reference to the <set> section in [[RssFeeds.xml]] (see below):
| This refers to the feedset to be displayed. This is the id reference to the <set> section in [[RssFeeds.xml]] (see below):
|- class="userrow"
|-  
| class="usercell" | '''font'''
| '''font'''
| class="usercell" | Specifies the font to use from the font.xml file.
| Specifies the font to use from the font.xml file.
|- class="userrow"
|-  
| class="usercell" | '''textcolor'''
| '''textcolor'''
| class="usercell" | Specified the color the text should be. In hex AARRGGBB format, or a name from the [[Colour Themes|colour theme.]]
| Specified the color the text should be. In hex AARRGGBB format, or a name from the [[Colour Themes|colour theme.]]
|- class="userrow"
|-  
| class="usercell" | '''shadowcolor'''
| '''shadowcolor'''
| class="usercell" | Specifies the color of the drop shadow on the text. In AARRGGBB format, or a name from the [[Colour Themes|colour theme.]]
| Specifies the color of the drop shadow on the text. In AARRGGBB format, or a name from the [[Colour Themes|colour theme.]]
|- class="userrow"
|-  
| class="usercell" | '''highlightcolor'''
| '''highlightcolor'''
| class="usercell" | Specified the color that any highlighted text should be. In hex AARRGGBB format, or a name from the [[Colour Themes|colour theme.]]
| Specified the color that any highlighted text should be. In hex AARRGGBB format, or a name from the [[Colour Themes|colour theme.]]
|- class="userrow"
|-  
| class="usercell" | '''titlecolor'''
| '''titlecolor'''
| class="usercell" | Specified the color the titles of the feeds should be. In hex AARRGGBB format, or a name from the [[Colour Themes|colour theme.]]
| Specified the color the titles of the feeds should be. In hex AARRGGBB format, or a name from the [[Colour Themes|colour theme.]]
|- class="userrow"
|-  
|- class="userrow"
|-  
| class="usercell" | '''scrollspeed'''
| '''scrollspeed'''
| class="usercell" | Scroll speed of text in pixels per second.
| Scroll speed of text in pixels per second.
|}
|}


Line 61: Line 61:


As can be seen, each feedset has an id attribute – this is what we are referencing in the <id> attribute of the control. There can be more than one <set> defined, and more than one <feed> per set. The <feed>'s must be escaped so that they're xml-safe <nowiki>(ie replace & with &amp; etc.)</nowiki>. Each feed in the set runs through in the order they are defined. You can get more details on this specific configuration file at [[RssFeeds.xml]]
As can be seen, each feedset has an id attribute – this is what we are referencing in the <id> attribute of the control. There can be more than one <set> defined, and more than one <feed> per set. The <feed>'s must be escaped so that they're xml-safe <nowiki>(ie replace & with &amp; etc.)</nowiki>. Each feed in the set runs through in the order they are defined. You can get more details on this specific configuration file at [[RssFeeds.xml]]
[[category:Skin Development]]
 
[[Category:Skin Development]]

Revision as of 07:53, 26 November 2011

Template:XBMC faq toc Inline The rss control is used for displaying scrolling RSS feeds from the internet in XBMC. You can choose the font, size, colour, location and the RSS feed to be displayed.

Note: Don't confuse RSS feed Control with RSS Feeds which allows you to view/listen to online video/audio/picture streams.

Example

 <control type="rss" id="1">
      <description>My First RSS control</description>
      <posx>80</posx>
      <posy>60</posy>
      <width>500</width>
      <visible>true</visible>
      <font>font14</font>
      <textcolor>FFB2D4F5</textcolor>
      <headlinecolor>FFFFFFFF</headlinecolor>
      <titlecolor>FF655656</titlecolor>
 </control>

Available Tags and attributes

In addition to the default control tags, the following tags are available. Note that each tag is lower case only. This is important, as xml tags are case-sensitive.

id This refers to the feedset to be displayed. This is the id reference to the <set> section in RssFeeds.xml (see below):
font Specifies the font to use from the font.xml file.
textcolor Specified the color the text should be. In hex AARRGGBB format, or a name from the colour theme.
shadowcolor Specifies the color of the drop shadow on the text. In AARRGGBB format, or a name from the colour theme.
highlightcolor Specified the color that any highlighted text should be. In hex AARRGGBB format, or a name from the colour theme.
titlecolor Specified the color the titles of the feeds should be. In hex AARRGGBB format, or a name from the colour theme.
scrollspeed Scroll speed of text in pixels per second.

The actual content of the RSS feed is defined in the RssFeeds.xml file stored in teh user's profile. Here is an example :

 <rssfeeds>
   <set id="1">
     <feed updateinterval="30">http://feeds.feedburner.com/XboxScene</feed>
     <feed updateinterval="30">http://feeds.wired.com/wired/topheadlines</feed>
   </set>
   <set id="2">
     <feed updateinterval="30">http://www.cnet.co.uk/feeds/public/rss_news_10.htm</feed>
   </set>
 </rssfeeds>

As can be seen, each feedset has an id attribute – this is what we are referencing in the <id> attribute of the control. There can be more than one <set> defined, and more than one <feed> per set. The <feed>'s must be escaped so that they're xml-safe (ie replace & with & etc.). Each feed in the set runs through in the order they are defined. You can get more details on this specific configuration file at RssFeeds.xml