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