Instead of "Current Song" by "Current Artist" our stream server sends out "Current Show with DJ Name ~ Current Artist - Current Song".
How can I get that information (I'm assuming using the "http://serverort/7.html" data?) break it down into the parts I need, and display it? Having it update every 60-90 seconds would be a bonus.
That's one approach, though XML or JSON will be easier to parse than HTML.
On newer boxes you might also be able to get that data from the stream itself with the isTimedMetaData() event
http://sdkdocs.roku.com/display/sdkdoc/ ... amicasVoid
http://sdkdocs.roku.com/display/sdkdoc/ ... layerEvent
I found the XML on the streaming server. Can you give me an example of how to add it to the player code I have now, and break the string down into the fields I need?
xfer = CreateObject("roURLTransfer")
str = xfer.GetToString()
xml = CreateObject("roXMLElement")
' parse the necessary data out of the XML
And speaking of XML, the way the channel is set up now, we have a Show Archive section that has a selection of shows from the previous week. If I have to add or remove a show, can that be done through an XML file on my server rather than editing the BRS file and repackaging the channel every time? And if so, how?
Without knowing what the XML looks like, you'd do something like this. There are several examples of parsing XML in the SDK.
<SONGTITLE>Ride the Storm with DJ Storm ~ AC/DC - Stormy May Day</SONGTITLE>
Ok, the specific line of XML from the server is this:<SONGTITLE>Ride the Storm with DJ Storm ~ AC/DC - Stormy May Day</SONGTITLE>
I'd want to split that into Show name (Ride the Storm), DJ name (DJ Storm), and Track (AC/DC - Stormy May Day).