port = CreateObject("roMessagePort")
screen = CreateObject("roVideoScreen")
streamUrl = ""
for each e in showElem.GetChildElements()
if e.GetName() = "source" then
streamUrl = e.GetText()
exit for
else if e.GetName() = "title" then
title = e.GetText()
endif
next
bitrates = [0]
qualities = ["SD"]
urls = [streamUrl]
streamformat = "hls"
videoclip = CreateObject("roAssociativeArray")
videoclip.StreamBitrates = bitrates
videoclip.StreamUrls = urls
videoclip.StreamQualities = qualities
videoclip.StreamFormat = streamformat
videoclip.Title = title
videoclip.Live = true
screen.SetContent(videoclip)
screen.SetMessagePort(port)
screen.Show()
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!
For support, visit support.roku.com.