Rather than try to decipher the whole complex audioapp application, I thought I would try using the example code for roAudioPlayer found on page 77 of the Component Reference PDF to test with. It appears to enque or at least try to enque, but I don't hear anything. Can anyone tell me what I might be doing wrong:
xfer.setURL(api+resource+user+uresource+ckey+limit+offset)
print resource+user+uresource+ckey+limit+offset
xferResult= xfer.GetToString()
print "transfer-result"+xferResult
if xmlFilelist.Parse(xferResult)
filearray=xmlFilelist.GetNamedElements("stream-url")
'now we have a list of the first up to 10 files
print "parse is true blue"
counter=0
print "counter="+counter.ToStr()
For Each file in xmlFileList.file
FileTitle=xmlFileList.file.GetNamedElements("title").[counter].GetText()
FileURL = xmlFileList.file.GetNamedElements("file-url").[counter].GetText()
FileDescription = xmlFileList.file.GetNamedElements("description").[counter].GetText()
print FileTitle+", "+FileURL
counter=counter+1
print "counter="+counter.ToStr()
song.url = FileURL+ckey
audioplayer.addcontent(song)
Next
End If
audioPlayer.SetMessagePort(port)
audioplayer.addcontent(song)
audioplayer.setloop(false)
audioPlayer.play()
while true
msg = wait(0, port)
if type(msg) = "roAudioPlayerEvent"
if msg.isStatusMessage() then
print "roAudioPlayerEvent: "; msg.getmessage()
if msg.getmessage() = "end of playlist" return
endif
endif
end while
When I run this, I get:
roAudioPlayerEvent: startup progress
roAudioPlayerEvent: startup progress
roAudioPlayerEvent: startup progress
roAudioPlayerEvent: startup progress
roAudioPlayerEvent: startup progress
...
roAudioPlayerEvent: end of playlist
and no sound.
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!