priya_sp
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2016
01:59 AM
embedding the video inside the panel set
i want to embed a video inside the panelset child? is it possible??
created a PanelSet object and creating a child for it and trying to embed video inside it
Panel set code here
i'm trying to embed the video component inside the panelset child..is it possible ??
video component code here
can someone help me out??
created a PanelSet object and creating a child for it and trying to embed video inside it
Panel set code here
m.panelset3 = createObject("roSGNode", "PanelSet")
m.video= m.panelset3.createChild("video")
i'm trying to embed the video component inside the panelset child..is it possible ??
video component code here
<component name = "Video" extends = "Panel" >
<script type = "text/brightscript" >
<![CDATA[
sub init()
print "video"
videocontent = createObject("RoSGNode", "ContentNode")
videocontent.title = "Example Video"
videocontent.streamformat = "mp4"
videocontent.url = "http://roku.cpl.delvenetworks.com/media/59021fabe3b645968e382ac726cd6c7b/f8de8daf2ba34aeb90edc55b2d380c3f/b228eeaba0f248c48e01e158f99cd96e/rr_123_segment_1_072715.mp4"
video = m.top.findNode("exampleVideo")
video.content = videocontent
video.setFocus(true)
video.control = "play"
end sub
]]>
</script>
<children >
<Video id = "exampleVideo"/>
</children>
</component>
can someone help me out??
1 REPLY 1
priya_sp
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2017
09:55 PM
Re: embedding the video inside the panel set
"priya_sp" wrote:
i want to embed a video inside the panelset child? is it possible??
created a PanelSet object and creating a child for it and trying to embed video inside it
Panel set code herem.panelset3 = createObject("roSGNode", "PanelSet")
m.video= m.panelset3.createChild("video")
i'm trying to embed the video component inside the panelset child..is it possible ??
video component code here<component name = "Video" extends = "Panel" >
<script type = "text/brightscript" >
<![CDATA[
sub init()
print "video"
videocontent = createObject("RoSGNode", "ContentNode")
videocontent.title = "Example Video"
videocontent.streamformat = "mp4"
videocontent.url = "http://roku.cpl.delvenetworks.com/media/59021fabe3b645968e382ac726cd6c7b/f8de8daf2ba34aeb90edc55b2d380c3f/b228eeaba0f248c48e01e158f99cd96e/rr_123_segment_1_072715.mp4"
video = m.top.findNode("exampleVideo")
video.content = videocontent
video.setFocus(true)
video.control = "play"
end sub
]]>
</script>
<children >
<Video id = "exampleVideo"/>
</children>
</component>
can someone help me out??
anyon could respond?