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.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Channel Surfer

Roku Video Controls not showing

I want to show up a video on a Panel. The project I am working on uses Sliding Panel component. So what I intend to do is on clicking a label list, I want to open a panel in fullscreen mode. This panel has a video node and will play video. Everything works fine but I cannot see the video controls on my video. The video will pause, play, rewind and forward from remote and the same is not displayed on video.
This is my panel component
<?xml version="1.0" encoding="UTF-8"?>
<component name="VideoScreen" extends="Panel"
<script type="text/brightscript" uri="pkg:/components/Screens/Video/VideoScreen.brs" />
<field id="videoURL" type="String" onChange="play"></field>
<field id="videoTitle" type="String"></field>

<Group id="groupSignInScreen" translation="[0, -173]">
<Video id="VideoPlayer" width="1920" height="1080" translation="[0,0]" />

In the brs file for above I do following:

sub init() = "full" = 0 = true ="VideoPlayer")"state", "onVideoPlaybackFinished")
end sub
sub play()
end sub

function setVideo() as void
  videoContent = createObject("RoSGNode", "ContentNode")
  videoContent.url = ""
  videoContent.title = "Test Video"
  videoContent.streamformat = "mp4" = videoContent = "play"
end function

function onVideoPlaybackFinished()
end function

Can anyone tell me where I am going wrong? If I perform everything in a Scene, it works fine. I do see the controls visible on my video. But when I do it on a Panel, it's not showing up!
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.