Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
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
0 Kudos
5 REPLIES 5
RokuJoel
Binge Watcher

Re: Play live Audio in M3u8 with AAC chunks

try adding this line:
song.streamformat="hls"
0 Kudos
5ytech
Visitor

Re: Play live Audio in M3u8 with AAC chunks

I tried this, but not working still.
0 Kudos
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.
0 Kudos
gonzotek
Visitor

Re: Play live Audio in M3u8 with AAC chunks

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

-JT

+1
Remoku.tv - A free web app for Roku Remote Control!
Want to control your Roku from nearly any phone, computer or tablet? Get started at http://help.remoku.tv
by Apps4TV - Applications for television and beyond: http://www.apps4tv.com
0 Kudos
TheEndless
Channel Surfer

Re: Play live Audio in M3u8 with AAC chunks

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

-JT

It looks like an ASX/ASF playlist (Windows Media) to me. Definitely not HLS.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos