sudo97
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2016
11:57 AM
Video in Sliding Panels
Hello, There's a problem with Video Node, when using Sliding Panels, some of examples in sdkdocs.roku.com use this strategy: Vide node is Child Node of the Scene, but not of some of the Panels and so on. But I need Video inside of Panel, not fullscreen, so I added it as child node of Panel. But when I switch it to fullscreen I can't hide arrow on the left side of screen. What strategy do you know? How can I contorl these arrows or simply hide it?
5 REPLIES 5
Tyler_Smith
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2016
12:35 PM
Re: Video in Sliding Panels
At what point do you create the Video component in your application?
If you are creating it on load directly in the scene you aren't going to be able to do what you want.
You should dynamically create the video player as a child to the element you want it to appear in.
When you no longer need it in the parent, destroy it.
If you are creating it on load directly in the scene you aren't going to be able to do what you want.
You should dynamically create the video player as a child to the element you want it to appear in.
When you no longer need it in the parent, destroy it.
Tyler Smith
sudo97
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2016
01:51 PM
Re: Video in Sliding Panels
"Tyler Smith" wrote:
At what point do you create the Video component in your application?
If you are creating it on load directly in the scene you aren't going to be able to do what you want.
You should dynamically create the video player as a child to the element you want it to appear in.
When you no longer need it in the parent, destroy it.
sorry, but when I create it dynamically in my Panel, outcome is the same, I see Video in fullscreen and the arrow on It
Tyler_Smith
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2016
04:00 PM
Re: Video in Sliding Panels
This is the <Video /> scene graph component even width a height and width set?
Tyler Smith

RokuJoel
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2016
05:04 PM
Re: Video in Sliding Panels
Engineering says:
Hope that helps,
- Joel
If you want to experiment with putting the Video node on a panel and you want the PanelSet arrows to not be visible when the Video node is fullscreen, you could reparent the Video node from the Panel to the Scene before animating the Video node’s size and position, then set the PanelSet’s visible field to false. You should investigate the “reparent” function on RoSGNode. That function takes two parameters, the new parent node and a boolean value “adjustTransform”. If “adjustTransform” is true, the Video node’s translation/scale/rotation fields will be adjusted so that the Video node remains the same onscreen size and position after reparenting the Video to the new parent node.
Hope that helps,
- Joel
piyushg098
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2017
05:04 AM
Re: Video in Sliding Panels
Please help out with a similar kind of issue I am facing here: