Player APIs (BrightScript & Ja...
...
Object Reference
Networking Objects
roRssArticle
5min
objects of type rorssarticle are returned by the rorssparser getnextarticle() method these instances can be passed to the rotextwidget object to display the feed on screen ifrssarticle gettitle() as string returns the title of the rss item getdescription() as string returns the content of the rss item gettimestampinseconds(a as integer) as boolean returns in seconds the difference in publication date between this rss item and the most recent item in the feed the user can utilize this to decide if an article is too old to display settitle(a as string) as boolean setdescription(a as string) as boolean settimestampinseconds(a as integer) as boolean for firmware versions 4 7 x and above, if no alpha value is specified when rotextwidget setforegroundcolor() is called, the text widget area will appear blank example u=createobject("rourltransfer") u seturl("http //www lemonde fr/rss/sequence/0,2 3208,1 0,0 xml") u gettofile("tmp\ /rss xml") r=createobject("rorssparser") r parsefile("tmp\ /rss xml") enablezonesupport(1) b=createobject("rorectangle", 0, 668, 1024, 100) t=createobject("rotextwidget", b, 3, 2, 2) t setforegroundcolor(\&hffd0d0d0) t show() a = r getnextarticle() while type(a) = "rorssarticle" t pushstring(a getdescription()) sleep(1000) a = r getnextarticle() end while while true sleep(1000) end while