Looking to create an audio stream app for my company. We currently play MP3 and AAC through our provider, but they use playlists in a .PLS and .ASX format. Can I use those playlist formats as the source for an audio stream app?
Unfortunately not. You'll need to parse the playlists programmatically to get the stream URLs. You might be able to use the ASX format, but I doubt it. Your best bet is to test it out before going through the hassle of writing a parser.
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.