0

re-size Video zones

I have two Video zones one on top of the other.  When a UDP command is sent I would like them to switch.  So I added a 3rd zone and an event handler.  UDP "Start" is the trigger.  under the advance tab I take zone 1 and re-size 0,0,1,1 so it will be 1 pixel wide by 1 pixel high in the upper left corner. and make sure zone two is sized 0,0,1080,1920.  and when the UDP "Stop" is trigger it calls for the same thing but in reverse.  Logically it should work but it doesn't for me.  I can i get this to work. 

it would be nice if there was a command to bring zone to front or back.  that would help. 

And why I am doing it this way is i don't want the video that is playing in zone 1 to stop. 

3 comments

  • 0
    Avatar
    Roni Starc

    Zones z position (which is in front and which is at the back) should be doable in brightscript. But if you need only to switch between zones playing the videos (only one visible at a time, without stopping the videos in either resizing the zones at need should be ok. 

    The way you have done it should work (at least something similar worked on a project I did  - I just did it so the dimension of the hidden zone is 0x0px in contrast to your 1x1px). Can you post the presentation you did (without the true videos - so the size is not huge), so we can better see what you did?

  • 0
    Avatar
    Roni Starc

    Oh something else.

    You don't need to resize both zones, resize just one. 

    Make 2 zones: zone1 (the one that will hide) and make sure it has the "Front" Z Video position and zone2 (that will always stay the same) and make sure it thas the "Back" Z Video position. This way zone1 will be in front of zone2, covering it. And when you need to show the zone 2 just hide zone1 (Advanced->Add command->Other-ResizeZone-Zone1-0-0-0-0) (and then 0-0-1920-1080 when you need to make it visible.

    This should work without problems.

  • 0
    Avatar
    Erik Franzen
    I got it to work. Just like I posted Thanks.
Please sign in to leave a comment.