Your Digital Media Has Never Looked So Good

 
sudo97
Topic Author
Posts: 43
Joined: Wed Sep 16, 2015 8:43 am

Video in Sliding Panels

Tue Jun 14, 2016 11:57 am

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?
 
User avatar
Tyler Smith
Posts: 108
Joined: Thu Apr 14, 2016 10:51 am
Location: Nova Scotia, Canada
Contact:

Re: Video in Sliding Panels

Tue Jun 14, 2016 12:35 pm

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.
Tyler Smith
Senior Developer, REDspace
redspace.com
 
sudo97
Topic Author
Posts: 43
Joined: Wed Sep 16, 2015 8:43 am

Re: Video in Sliding Panels

Tue Jun 14, 2016 1:51 pm

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
 
User avatar
Tyler Smith
Posts: 108
Joined: Thu Apr 14, 2016 10:51 am
Location: Nova Scotia, Canada
Contact:

Re: Video in Sliding Panels

Tue Jun 14, 2016 4:00 pm

This is the <Video /> scene graph component even width a height and width set?
Tyler Smith
Senior Developer, REDspace
redspace.com
 
User avatar
RokuJoel
Posts: 1753
Joined: Mon Nov 14, 2011 5:22 pm

Re: Video in Sliding Panels

Tue Jun 14, 2016 5:04 pm

Engineering says:

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
Posts: 3
Joined: Mon Sep 04, 2017 11:46 pm

Re: Video in Sliding Panels

Wed Sep 13, 2017 5:04 am

Please help out with a similar kind of issue I am facing here:

Who is online

Users browsing this forum: No registered users and 7 guests