Forum Discussion

dellsweig's avatar
dellsweig
Visitor
16 years ago

help playing stream

I have an app on my PC - XMTuner - which creates streams for my XM radio stations. I can listen to these streams with my Roku Soundbridge by giving them the path:

http://192.168.1.98:19081/streams/57/high - where 57 is the XM channel number.

I built a test app using the sample AudioApp in the SDK.

I create a poster item with the following fragment:

Category = CreatePosterItem("GD","GD","XM Radio Station")
Category.Process = DoGd
aa.PosterItems.push(Category)

and added the following BRS module:

'**********************************************************
'** Audio Player Example Application - Audio Playback
'** November 2009
'** Copyright (c) 2009 Roku Inc. All Rights Reserved.
'**********************************************************

' NPR support routines

Function CreateGdSongList() as Object
aa = CreateObject("roAssociativeArray")
aa.posteritems = CreateObject("roArray", 10, true)
song = CreateSong("GD","Live XM Radio Stream","Grateful Dead", "mp3", "http://192.168.1.98:19081/streams/57/high","http://2.bp.blogspot.com/_kFK17fWz8Ts/R5fB090pTEI/AAAAAAAAAC4/WNdywVeBQ9A/s400/grateful_dead-steal_your_face-sailfastchicago.jpg")
aa.posteritems.push(song)
return aa
End Function

Sub DoGd(from as string)
'Since there is only one item, go right into playing the XM stream
SongList = CreateGdSongList()
Show_Audio_Screen(songlist.posteritems[0], from)
End Sub


The App loads with no errors - when I select the poster to play - I get the following denug output:

posterscreen get selection typemsg = roPosterScreenEvent
------ Running ------
Entering Main
Enter PosterScreen getsel
posterscreen get selection typemsg = roPosterScreenEvent
list selected: 0
picture at:http://2.bp.blogspot.com/_kFK17fWz8Ts/R5fB090pTEI/AAAAAAAAAC4WNdywVeBQ9A/s400/grateful_dead-steal_your_face-sailfastchicago.jpg
*** ERROR: Invalid or missing PHY in path "http://192.168.1.98:19081/streams/57/high"
AudioPlayer Status Event - startup progress
AudioPlayer Status Event - startup progress
AudioPlayer Status Event - startup progress
failed to play song: 0
FullResult: End of Playlist
AudioPlayer Status Event - end of playlist
end of playlist (obsolete status msg event)

Any help as to why to App does not like the stream??

Thanks