<?xml version = "1.0" encoding = "utf-8" standalone = "yes" ?>
<VideoContent >
<video
title = "AAA"
streamformat = "hls"
url = "link.hls" />
<video
title = "BBB"
streamformat = "hls"
url = "link.hls" />
<video
title = "CCC"
streamformat = "hls"
url = "link.hls" />
</VideoContent>
<?xml version="1.0" encoding="utf-8" ?>
<component name = "my videos" extends = "Group" >
<script type = "text/brightscript" >
<![CDATA[
sub init()
setVideo()
end sub
sub setVideo()
videoContent = createObject("RoSGNode", "ContentNode")
videoContent.title = "video"
videoContent.streamformat = "hls"
videoContent.url = "link.m3u8"
m.video = m.top.findNode("video")
m.video.content = videoContent
m.video.control = "play"
end sub
function onKeyEvent(key as String, press as Boolean) as Boolean
if press then
if key = "ok"
m.videolist.setFocus(true)
return true
end if
end if
return false
end function
]]>
</script>
<children>
<Video
id = "video"
width = "1280"
height = "720" />
<LabelList id = "MyList" >
<ContentNode role = "content" >
<ContentNode title = "Link 1" />
<ContentNode title = "Link 2" />
<ContentNode title = "Link 3" />
</ContentNode>
</LabelList>
</children>
</component>
"RokuLeoW" wrote:
This example is a bit outdated as it does not use SceneGraph/SDK2 concepts.
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!