Hello,
My roaudioplayer is not playing Live Audio which is in m3u8 format with AAc chunks. I tried with both M3U8 with AAC and MP3.
it says : Cannot seek to 0/1000: error -33.
Can any one let me know why?
Please find my code below for your reference:
Sub Main()
audioPlayer = CreateObject("roAudioPlayer")
port = CreateObject("roMessagePort")
audioPlayer.SetMessagePort(port)
song = CreateObject("roAssociativeArray")
song.url = "
http://radio01.pcmac.org:8000/7C1AFAED-DC65-4DB2-A283-50E58FD880AD.m3u8"
audioplayer.addcontent(song)
audioplayer.setloop(false)
audioPlayer.play()
while true
msg = wait(0, port)
if type(msg) = "roAudioPlayerEvent"
if msg.isStatusMessage() then
print "roAudioPlayerEvent: "; msg.getmessage()
if msg.getmessage() = "end of playlist" return
endif
endif
end while
End Sub