Function startSound(screen)
m.audio = CreateObject("roAudioPlayer")
item = CreateObject("roAssociativeArray")
item.Url = "http://www.xxxxx.org/roku/music/Letsride.mp3"
item.StreamFormat = "mp3"
m.audio.AddContent(item)
item.Url = "http://www.xxxxx.com/RokuDir/audio/town.mp3"
item.StreamFormat = "mp3"
m.audio.AddContent(item)
m.audio.SetLoop(true)
m.audio.Play()
' you can add more audio as this has 2 mp3's in line to play or add more.
End Function
Function stopSound()
m.audio.Stop()
End Function
Function startSound(screen)
m.audio = CreateObject("roAudioPlayer")
item = CreateObject("roAssociativeArray")
item.TextTransfer=CreateObject("roUrlTransfer")
item.Url = "http://www.xxxxx.org/roku/mp3filename.txt"
MP3Filename=TextTransfer.GetToString()
item.StreamFormat = "mp3"
m.audio.AddContent(MP3Filename)
print item
print 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")
port=CreateObject("roMessagePort")
m.audio.SetMessagePort(port)
item = CreateObject("roAssociativeArray")
item.Url=MP3Filename
item.StreamFormat = "mp3"
m.audio.AddContent(item)
m.audio.SetLoop(False)
m.audio.Play()
While True
msg = Wait (0, port)
If Type (msg) = "roAudioPlayerEvent"
If msg.IsRequestSucceeded() or msg.IsRequestFailed () or msg.IsFullResult () or msg.IsPartialResult () or msg.IsRequestInterrupted ()
Exit While
EndIf
EndIf
End While
End Function
We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. Read more here.
Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 19th and you may notice reduced functionality.
In the meantime, for additional assistance, visit our Support Site.
We're sorry for this disruption — we’re excited to share what’s next!