"andre" wrote:
Do you have any suggestions on where I should begin?
First of all you might want to have a look at the script "urlUtils.brs" which is contained in the example "register". It will give you an idea of the code that's required to load the content of the playlist file into a string variable.
Assuming the content of the playlist file is stored in a variable named
URL and you have declared a variable
AudioURL for the stream URL the following two lines of code will retrieve the stream URL:
AudioURL = Mid(URL, InStr(1, UCase(URL), "FILE1=") + 6)
AudioURL = Mid(AudioURL, 1, InStr(1, AudioURL, chr(13)) - 1)
The first line will extract the stream URL and all subsequent characters from the playlist file's content. The second line will trim the stream URL by removing all characters following the carriage return and the carriage return itself.
Please be aware that this is a quick and dirty solution which will not be capable of dealing with playlist files containing more than one stream URL. Furthermore it will return errors if the playlist file's content is not complying to the standard.
Greetings
dupondt
SoundBridge M1001 and M1000 • Clint L1 (retired) • DNT IP-dio (retired)
Google Chromecast • Amazon Fire TV • Amazon Echo and Echo Dot