0

Hiding Image/Video Zones



Hi all, is it possible to hide a zone other than a text widget? or change a zone's z-order? I've got an application which requires to change the "layout" on the fly. More specifically, I've got the main layout (3 zones: 1 image on the left, 1 image on the right, and 1 text/rss at the bottom) which should let a full-screen promotional image show for one minute before resuming. I know that BrightAuthor/Brightsign doesn't support multiple layouts out-of-the-box so I was looking at simply hiding the main layout zones and/or bringing to front the promotional image zone... is something like this possible? Your help is greatly appreciated.

6 comments

  • 0
    Avatar
    RokuLyndon


    There isn't a hide command for the image zones. THere is for the text zone.

    I'm thinking you'd almost have to destroy the regular image zones, redraw one of the zones as full screen, and when it was done, restart the playlist. I can't think of an easy way to do this with brightauthor.

    it might be easier if you wrote a script from scratch to do it. Then, you could better keep track of the old dimensions used when destroying old zones to show new ones.

    Ok, I dug up a test script I had worked on a while back. This script uses a simple wait timer to toggle between fullscreen and multiple zone mode. IN this example, we're going from three zones, 1 video and 2 images, to one zone, 1 video, and then back again. The two image zones aren't destroyed, but stopped, to clear the images. ANd, the video zone is made fullscreen.

    In your case, I don't know if you can have one image zone overlap another. I know you can with video, if there's nothing displayed in the image zone. So, you might have to set one of your image players to zero to get rid of it until you can go back to the multizone mode.

    For example:

    i2=0

    EnableZoneSupport(true)

    vmode=createobject("roVideoMode")
    vmode.SetMode("720x480x60p")
    v=createobject("roVideoPlayer")
    v.SetLoopMode(true)
    i1=createobject("roImagePlayer")
    i2=createobject("roImagePlayer")

    p = createobject("roMessagePort")
    fullscreen=false

    goto splitscreen

    listen:
    msg = wait(180000,p)
    goto splitscreen
    goto listen2


    listen2:
    msg = wait(60000,p)
    goto fullscreen
    goto listen


    splitscreen:
    fullscreen=false
    r = CreateObject("roRectangle",0,0,423,329)
    v.SetRectangle(r)
    r = CreateObject("roRectangle",0,329,720,151)
    i1.SetRectangle(r)
    r = CreateObject("roRectangle",424,0,296,328)
    i2.SetRectangle(r)
    goto play



    fullscreen:
    fullscreen=true
    r = CreateObject("roRectangle",0,0,720,480)
    v.SetRectangle(r)

    i1.StopDisplay()
    i2.StopDisplay()

    goto play



    play:
    if fullscreen then
    v.playfile("video.mpg")
    goto listen
    else
    v.playfile("video.mpg")
    i1.DisplayFile("image1.jpg")
    i2.DisplayFile("image2.jpg")
    goto listen2
    endif

  • 0
    Avatar
    smertrios


    Thanks a bunch for your reply.  I'm going to play with your script... it seems to do exactly what I want.
  • 0
    Avatar
    Michael Bryant

    I have an almost identical requirement to that of the OP smertrios. I need my standard display with a number of zones to run for, say, half an hour, and then switch to a full screen display for 5 minutes and then revert back to the standard display. I am not competent enough to use scripts like the one offered by RokuLyndon but I wonder if the most recent iteration of Brightauthor now includes something that would allow zones to be hidden. Alternatively, could I make up two presentations and set these to switch automatically? My player is a standalone one so interactive commands are not possible.

  • 0
    Avatar
    Romeo

    Hi Michael,

    Please refer to the below FAQ for further details on how to use the switch presentation feature in BrightAuthor.

     http://support.brightsign.biz/hc/en-us/articles/218067307-How-do-I-switch-presentations-or-change-layouts-in-BrightAuthor-

    Regards,

    Romeo

  • 0
    Avatar
    Michael Bryant

    Hi Romeo,

      I have read that link but it still isn't clear to me how things are set up so that the switch to a new presentation is triggered automatically. I want to leave the presentation running and then, at a set time, switch on its own to a new presentation and then revert after another set time; ie two presentations alternating with each other.

  • 0
    Avatar
    Larry Price

    << Response based upon BrightAuthor 4.6.0.14 on Windows 7 Enterprise, writing to an LS422. >>

    I have made this work for Image only and Video/Image zones for both touch and timeout events. Connect the event to the asset, Dbl Click the event, Click Advanced Tab, Click Add Command, Set Commands = Other, Command Parameters = Hide Zone, select the zone you want to hide.

    Same process to show a zone with exception that Command Parameters = Show Zone.

    Note this works for zones that may or may not overlap (so if one were interested in a flashing mosaic or interactive "game", for ex., this might be a quick and dirty possibility.

    The switch presentation method is too cumbersome and the transitions, at least on the 422, are not seamless.

Please sign in to leave a comment.