Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
priya_sp
Level 7

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

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??
0 Kudos
1 Reply
priya_sp
Level 7

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 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??

anyon could respond?
0 Kudos