Forum Discussion
destruk
13 years agoStreaming Star
Wouldn't this work?
Function startSound(screen)
TextTransfer=CreateObject("roUrlTransfer")
TextTransfer.SetUrl("http://www.xxxxx.org/roku/mp3filename.txt")
MP3Filename=TextTransfer.GetToString()
m.audio = CreateObject("roAudioPlayer")
item = CreateObject("roAssociativeArray")
item.Url=MP3Filename
item.StreamFormat = "mp3"
m.audio.AddContent(MP3Filename)
m.audio.SetLoop(true)
m.audio.Play()
End Function
Function stopSound()
m.audio.Stop()
End Function
Function startSound(screen)
TextTransfer=CreateObject("roUrlTransfer")
TextTransfer.SetUrl("http://www.xxxxx.org/roku/mp3filename.txt")
MP3Filename=TextTransfer.GetToString()
m.audio = CreateObject("roAudioPlayer")
item = CreateObject("roAssociativeArray")
item.Url=MP3Filename
item.StreamFormat = "mp3"
m.audio.AddContent(MP3Filename)
m.audio.SetLoop(true)
m.audio.Play()
End Function
Function stopSound()
m.audio.Stop()
End Function
Related Content
- 10 months ago
- 7 months ago
- 6 months ago