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: 
IRoad
Visitor

RADIO

Hi,
I want integrate on my channel a radio live station as NPR, someone can help me to understand format etc.
Thanks,
F
0 Kudos
1 REPLY 1
RokuJoel
Binge Watcher

Re: RADIO

using roaudioplayer:

song={}
song.streamformat="mp3"
song.url="http://myshoutcastserver:port/"
' radio won't stream without trailing slash
audioplayer=createobject("roaudioplayer")
audioplayer.addcontent(song)
audioplayer.play()

you can also use HLS audio:

song.streamformat="hls"
song.url="http://mywowzaserveraddress/myradiostream.m3u8"

HLS should work with AAC audio streams, and mp3 on firmware 4.x or later.

- Joel
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.