How can I add a RSS feed as a ticker source?

From AVObjects Knowledge Base
Revision as of 14:19, 9 December 2010 by Bmezhebitskiy (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

It is really simple. All you need is pass the RSS xml URL as a ticker content using TickerAddContent method like this:

C# sample code:

m_pMLCharGen.TickerAddContent("my-rss-ticker", "http://newsrss.bbc.co.uk/rss/sportonline_world_edition/front_page/rss.xml", "remove-all");

You can test it on our Character Generator C# sample application. Here ia s sequence of actions:

  • Run Character Generator C# sample application.
  • Disable Demo mode if it is enabled.
  • Press "Show CG Config Panel" button to open the configuration panel.

CG rss1.jpg

  • Add new ticker by clicking the "Add Ticker" button. No need to add any content to the ticker, so press "Cancel" on the open file dialog.
  • Set your ticker to be displayed by doubleclicking on the "show" field of ticker.
  • Input your RSS feed URL to Ticker Content text box.
  • Press "Add Text" button to add URL as a source to the ticker.

CG rss2.jpg

  • Now your ticker is displaying content from RSS reed. You can close the configuration panel and enjoy.

CG rss3.jpg