Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
tbrightbill
Level 7

Streaming WMA audio

Has anyone had any luck streaming WMA audio? I tried modifying the sample NPR app with several different stations and URLs and have not had any luck.

I started with changing line 12 in Npr.brs to the following:

song = CreateSong("FFH Rock Over Germany","Live WMA Internet Radio Stream","Many", "wma", "mms://62.27.47.7/ffhchannels%24rock%24livestream.wma","http://media.npr.org/chrome/news/nprlogo_138x46.gif")


I guessed that the MMS protocol wouldn't work, but thought I'd try. I got the following message in the debugger:

*** ERROR: Invalid or missing PHY in path "mms://62.27.47.7/ffhchannels%24rock%2
4livestream.wma"


I changed "mms" to "http" in the URL and tried again. Nothing. I went into AudioPlayer.brs and uncommented lines 100 and 103 (below)

print "In audioPlayer get selection - Waiting for msg escape=" ; escape
print "Got msg = "; type(msg)


saving, zipping, and uploading gives the following in the debugger:

picture at:http://media.npr.org/chrome/news/nprlogo_138x46.gif
In audioPlayer get selection - Waiting for msg escape=roSpringboardScreenEvent
Got msg = roAudioPlayerEvent
AudioPlayer Status Event - startup progress
In audioPlayer get selection - Waiting for msg escape=roSpringboardScreenEvent
Got msg = roAudioPlayerEvent
AudioPlayer Status Event - startup progress
In audioPlayer get selection - Waiting for msg escape=roSpringboardScreenEvent
Got msg = roAudioPlayerEvent
AudioPlayer Status Event - startup progress
In audioPlayer get selection - Waiting for msg escape=roSpringboardScreenEvent
Got msg = roAudioPlayerEvent
starting song: 0
In audioPlayer get selection - Waiting for msg escape=roSpringboardScreenEvent
Got msg = roAudioPlayerEvent
AudioPlayer Status Event - startup progress
In audioPlayer get selection - Waiting for msg escape=roSpringboardScreenEvent
Got msg = roAudioPlayerEvent
AudioPlayer Status Event - startup progress
In audioPlayer get selection - Waiting for msg escape=roSpringboardScreenEvent
Got msg = roAudioPlayerEvent
AudioPlayer Status Event - startup progress
In audioPlayer get selection - Waiting for msg escape=roSpringboardScreenEvent
Got msg = Invalid
In audioPlayer get selection - Waiting for msg escape=roSpringboardScreenEvent
Got msg = roSpringboardScreenEvent


If I execute the following command on a Linux box:

lynx -dump -head http://62.27.47.7/ffhchannels%24rock%24livestream.wma


I get the following:

HTTP/1.1 501 Not Implemented
Server: Cougar/9.01.01.5001
Date: Wed, 24 Mar 2010 06:20:03 GMT
Public: GET, POST, OPTIONS
Pragma: no-cache
Supported: com.microsoft.wm.srvppair, com.microsoft.wm.sswitch, com.microsoft.w
m.predstrm, com.microsoft.wm.fastcache, com.microsoft.wm.startupprofile
Connection: close


I get similar results for other stations and URLs (many of those start off with an ASX extension in the URL. Parsing the output of that yields URLs with WMA)

Entering the URL into Windows Media Player generates audio. I'm assuming that the Media Player is reading the "Supported:" portion of the header and asking for a different resource.

(I take the HTTP response code of 501 as a really bad sign for being able to use any of these URLs with the Roku video player)

Thoughts? Comments? Suggestions?

Thanks!

Thomas
0 Kudos
11 REPLIES 11\
nowhereman
Level 7

Re: Streaming WMA audio

I've had similar experiences. The AudioPlayer sends a couple of "startup progress" events and then just stalls. In some cases, that stall locks up my entire box forcing a power cycle. I have yet to successfully play any WMA stream and I've had this problem with quite a few MP3 streams as well. The URLs are correct, they point to actual streams (as opposed to playlist files), they play in VLC and on my SoundBridge. I'm at a loss.
twitter:nowhereman
http://www.thenowhereman.com/roku
http://www.thenowhereman.com/netflix
0 Kudos
RokuMarkn
Level 8

Re: Streaming WMA audio

The URL http://62.27.47.7/ffhchannels%24rock%24livestream.wma does not seem to point to a WMA file, but some kind of text file, maybe a playlist. If anyone has examples of real WMA files that fail to play, I'd be interested.

--Mark
0 Kudos
dupondt
Level 7

Re: Streaming WMA audio

Mark,

The URL http://62.27.47.7/ffhchannels%24rock%24livestream.wma does not seem to point to a WMA file, but some kind of text file, maybe a playlist. If anyone has examples of real WMA files that fail to play, I'd be interested.

Thomas and nowhereman are not talking of files, but streams.

http://62.27.47.7/ffhchannels$rock$livestream.wma is the address of a continuous stream served by Windows Media Services version 9.01.01.5001 presumably running on a Windows Small Business Server 2008.

Greetings
dupondt
SoundBridge M1001 and M1000 • Clint L1 (retired) • DNT IP-dio (retired)
Google Chromecast • Amazon Fire TV • Amazon Echo and Echo Dot
0 Kudos
tbrightbill
Level 7

Re: Streaming WMA audio

Hi Mark,

The previous posts are correct - I'm trying to capture a stream, not a file.

Looking at the Developer Guide again this morning, I see that it says

We only support .wma and .mp3 files in the audio player.


I guess seeing that MP3 streams could be captured gave me hope that some of the Microsoft audio streams could be captured. Overall, my thought is:

It would be really nice if the same audio streams that can be captured with the SoundBridge could be captured with the Digital Video Player (i.e. one appliance that captures both video and audio)

As a final bit of troubleshooting, when I open the Roku Radio Snooper and enter the http URL into Windows Media Player, I don't see any supported URLs. When I enter the MMS URL, it (eventually) shows up as 'supported'.

Thanks!

Thomas
0 Kudos
dupondt
Level 7

Re: Streaming WMA audio

"nowhereman" wrote:
I have yet to successfully play any WMA stream and I've had this problem with quite a few MP3 streams as well.

Maybe these MP3 streams are delivered by WMS. Could you post some of the URLs?

Greetings
dupondt
SoundBridge M1001 and M1000 • Clint L1 (retired) • DNT IP-dio (retired)
Google Chromecast • Amazon Fire TV • Amazon Echo and Echo Dot
0 Kudos
nowhereman
Level 7

Re: Streaming WMA audio

"dupondt" wrote:
"nowhereman" wrote:
I have yet to successfully play any WMA stream and I've had this problem with quite a few MP3 streams as well.

Maybe these MP3 streams are delivered by WMS. Could you post some of the URLs?

Greetings
dupondt


A couple MP3 streams that I can't get to play. I did notice that a HEAD request on theses looks a bit suspicious even though they're valid streams...

http://208.80.54.79:80/KOOLFMCMP3
HTTP/1.0 501 Not Implemented
Content-Type: text/html
Content-Length: 115

http://stream.laut.fm:80/indiegoestohollywood
HTTP/1.0 400 Bad Request
Content-Type: text/html

Whereas, a HEAD request on a stream that does play on the box returns nothing...

http://sro-streaming.net:4215/
curl: (52) Empty reply from server
twitter:nowhereman
http://www.thenowhereman.com/roku
http://www.thenowhereman.com/netflix
0 Kudos
dupondt
Level 7

Re: Streaming WMA audio

"nowhereman" wrote:
http://208.80.54.79:80/KOOLFMCMP3

That looks like StreamTheWorld, but it doesn't work in any of my players. Do other streams from StreamTheWorld play on the DVP?

http://stream.laut.fm:80/indiegoestohollywood

That's coming from an IceCast server. What happens if you add .m3u to the URL?

http://sro-streaming.net:4215/

Shoutcast servers ususally don't cause any problems.

Greetings
dupondt
SoundBridge M1001 and M1000 • Clint L1 (retired) • DNT IP-dio (retired)
Google Chromecast • Amazon Fire TV • Amazon Echo and Echo Dot
0 Kudos
Narsh
Level 7

Re: Streaming WMA audio

"dupondt" wrote:
"nowhereman" wrote:
http://208.80.54.79:80/KOOLFMCMP3

That looks like StreamTheWorld, but it doesn't work in any of my players. Do other streams from StreamTheWorld play on the DVP?


I have tested at least one that does:

http://radiotime.com/station/s_52490/The_Oasis_1075.aspx


It links to playlists which have multiple formats, but this one plays on the Roku with a similar URL:

http://208.80.52.118:80/KMVKHD2CMP3
0 Kudos
nowhereman
Level 7

Re: Streaming WMA audio

"dupondt" wrote:
"nowhereman" wrote:
http://208.80.54.79:80/KOOLFMCMP3

That looks like StreamTheWorld, but it doesn't work in any of my players. Do other streams from StreamTheWorld play on the DVP?


It works fine in VLC. And no, I've found several like it that also fail on the box.
twitter:nowhereman
http://www.thenowhereman.com/roku
http://www.thenowhereman.com/netflix
0 Kudos