Both PLS and ASX files are simple text files that contain some metadata and the URLs to the streams. In your BrightScript code, you'd need to read in the contents of the playlist and parse them to pull out those stream URLs.
ASX is in XML format, so you can use the
roXmlElement to parse it and get the stream URL from the "href" attribute of the "ref" element.
PLS is a simple name-value pair text file separated by carriage returns, so you can split it on Chr(10) using
Tokenize() to find the stream URL in the appropriate "FileX" line. Once you have the stream URLs, you can pass those directly to the roAudioPlayer or roVideoScreen for playback.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)