Your Digital Media Has Never Looked So Good

Topic Author
Posts: 11
Joined: Mon Sep 04, 2017 11:46 pm

Roku Video Controls not showing

Tue Sep 12, 2017 9:05 am

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!

Who is online

Users browsing this forum: No registered users and 13 guests