Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
priya_sp
Visitor

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 1
priya_sp
Visitor

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
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.