Not sure if what you did in audioplayer would directly translate or not would have to see your code.
My opinion is that people who really want to learn Brightscript should start off writing a channel from scratch instead of hacking an example to work, but I also understand that many people just want to publish content as quickly as possible.
a simple audio playback function might look like this (one stream only, not a playlist):
function playaudio(contentlist, index) as integer
audio=createobject("roaudioplayer")
audio.addcontent({url:contentlist[index].streamurl,streamformat:contentlist[index].streamformat})
port=createobject("romessageport")
audio.setport(port)
audio.play()
while true
msg=wait(0,port)
if lcase(type(msg))="roaudioplayerevent" then
if msg.isRequestSucceeded() then
return -1
else if msg.isrequestfailed() then
return -2
end if
end if
end while
end function