RSS ticker: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>Theuni
No edit summary
Line 5: Line 5:


===Example===
===Example===
  <xml>
  <source lang="xml">
  <control type="rss" id="1">
  <control type="rss" id="1">
       <description>My First RSS control</description>
       <description>My First RSS control</description>
Line 18: Line 18:
       <urlset>1</urlset>
       <urlset>1</urlset>
  </control>
  </control>
  </xml>
  </source>


===Available Tags===
===Available Tags===
Line 45: Line 45:
| class="usercell" | Scroll speed of text in pixels per second.
| class="usercell" | Scroll speed of text in pixels per second.
|}
|}
  <xml>
  <source lang="xml">
  <rssfeeds>
  <rssfeeds>
   <set id="1">
   <set id="1">
Line 55: Line 55:
   </set>
   </set>
  </rssfeeds>
  </rssfeeds>
  </xml>
  </source>
Each feedset has an id attribute – this is what we are referencing in the <urlset> parameter. As can be seen, 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. [[RssFeeds.xml|HOW-TO: Change RSS feeds and more info on RSS feeds|More information about RSS feeds can be found here.]]
Each feedset has an id attribute – this is what we are referencing in the <urlset> parameter. As can be seen, 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. [[RssFeeds.xml|HOW-TO: Change RSS feeds and more info on RSS feeds|More information about RSS feeds can be found here.]]
[[category:Skin Development]]
[[category:Skin Development]]

Revision as of 21:48, 21 April 2010

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>
      <urlset>1</urlset>
 </control>

Available Tags

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.

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.
urlset The actual RSS feedset to use. This is an id reference to the <rss> section in RssFeeds.xml:
scrollspeed Scroll speed of text in pixels per second.
 <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>

Each feedset has an id attribute – this is what we are referencing in the <urlset> parameter. As can be seen, 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. HOW-TO: Change RSS feeds and more info on RSS feeds|More information about RSS feeds can be found here.