5ytech
Visitor

Play live Audio in M3u8 with AAC chunks

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
Tags (1)
0 Kudos
1 REPLY 1
renojim
Community Streaming Expert

Re: Play live Audio in M3u8 with AAC chunks

I don't know what that is, but it isn't an m3u8 HLS file.

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
Tags (1)
0 Kudos
Community is Temporarily in Read-Only Mode!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

Thanks for your patience — we’re excited to share what’s next!