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: 
newchannel
Roku Guru

Help regarding playing radio stream

To play a stream from a server that operates an internet radio station, is the url to have mp3 on the end?

I have a stream that was provided to me but it has the server address as an ip with 8000 on the end.
http://www.victoryNOWfilmsandtv.com
0 Kudos
24 REPLIES 24
belltown
Roku Guru

Re: Help regarding playing radio stream

As long as it's an MP3 stream it doesn't matter what the URL is.
0 Kudos
TheEndless
Channel Surfer

Re: Help regarding playing radio stream

Be sure to add a trailing slash to the URL. For some reason, the audio player doesn't like mp3 streams that end in a port number unless the have a trailing slash (e.g., http://my.radio.url:8000/)
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
newchannel
Roku Guru

Re: Help regarding playing radio stream

Oh...

Thank you The Endless. Will try it.
http://www.victoryNOWfilmsandtv.com
0 Kudos
newchannel
Roku Guru

Re: Help regarding playing radio stream

The radio stream so far is not working. (It's a radio station that is on shoutcast and I have permission to add it.) I have been trying the following:

<item sdImg="http://xxxxx.net/xxx/images/xxxx.jpg" hdImg="http://xxxx.net/xxx/images/xxxx.jpg">
<title>xxxxxxx</title>
<contentId>10031</contentId>
<contentType>Talk</contentType>
<contentQuality>SD</contentQuality>
<media>
<streamFormat>mp3</streamFormat>
<streamQuality>SD</streamQuality>
<streamBitrate></streamBitrate>
<streamUrl>
http://xxx.xx.xx:8000/
</streamUrl>
</media>
<synopsis>
LIVE Radio stream from xxxxxxx.
</synopsis>
<genres>Music</genres>
<runtime>1790</runtime>
</item>


Any tips on what the problem might be or where I should look for more information on this type of code?

Thanks in advance.
http://www.victoryNOWfilmsandtv.com
0 Kudos
RokuMarkn
Visitor

Re: Help regarding playing radio stream

I assume in your actual streamUrl value, you have something after the last slash? The top level directory of a web site isn't likely to be an mp3 file.

--Mark
0 Kudos
newchannel
Roku Guru

Re: Help regarding playing radio stream

The url is like http://17x.xxx.17x.5x:8000/

all numbers with the / at the end
http://www.victoryNOWfilmsandtv.com
0 Kudos
RokuMarkn
Visitor

Re: Help regarding playing radio stream

That doesn't sound right. You're saying the website contains nothing but one mp3 file? And the root directory of the web site redirects to that file? I think you're missing something in the URL. I would think it should at least look like http://17x.xxx.17x.5x:8000/yyyy.mp3.

If you enter that URL in your browser, what happens? Do you go to a web site or does it just start playing an mp3 file? If the former, then your URL is incomplete.

--Mark
0 Kudos
TheEndless
Channel Surfer

Re: Help regarding playing radio stream

"RokuMarkn" wrote:
That doesn't sound right. You're saying the website contains nothing but one mp3 file? And the root directory of the web site redirects to that file? I think you're missing something in the URL. I would think it should at least look like http://17x.xxx.17x.5x:8000/yyyy.mp3.

If you enter that URL in your browser, what happens? Do you go to a web site or does it just start playing an mp3 file? If the former, then your URL is incomplete.

--Mark

Mark, that's normal for a SHOUTcast stream. In this instance, the url is pointing to a SHOUTcast server, not a website.

newchannel, based on the XML posted, it looks like you might be trying to use the video format for your content. Are you parsing that and passing it to an roAudioPlayer component, or are you trying to use the same code you use for video? The latter is unlikely to work.
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
newchannel
Roku Guru

Re: Help regarding playing radio stream

I pasted it into the browser. Takes me to a page for the info about the shoutcast station. If I add listen.pls after the 8000/ then it loads and plays the stream on the computer.
http://www.victoryNOWfilmsandtv.com
0 Kudos