0

Change Zone size w/ UDP command

Hi all,

 

I am currently looking into making a project with several players, all automated with a AMX command processor to send UDP commands. But before getting ahead of myself, let's start with just one player for the moment.

Here's what I need : I would like the player to resize the main video zone when receiving specific UDP commands. So far, so good. Here's the tricky part : I want the commands (and the amount of resizing) to be variables.

For instance : the UDP command could be something like "sizex800y600" and the player would know to resize its video zone to 800x600. Of course, for it to be interesting, the command would be variable i.e "sizex<$>y<$>"

Can I achieve something like that only using standard interactive presentations, with event handlers, variables and resize commands, or do I necessarily have to use a BrightScript?

 

Thank you all for your help.

Regards,

Renaud.

5 comments

  • 1
    Avatar
    Bright Scripters

    You should be able to send UDP messages that change User Variables, and a message to apply the values to the zone size and position.

    See this page

    http://docs.brightsign.biz/display/DOC/UDP+Input

     

  • 0
    Avatar
    Renaud Mogenot

    Hi Bright Scripters,

    First of all, thank you very much for your help.

    Having UDP messages that change the values of variables wasn't that hard. I already used this part.

    For now, I have two variables (sizex and sizey) that I can change using UDP commands.

    I do not know, however, how to assign those variables to the size and position of my zone.

    What tools should I need? Could you help me on that as well?

     

    Many thanks,

    Renaud.

  • 1
    Avatar
    Bright Scripters

    When you resize a zone, instead of putting fixed values, use the values in the variables like so:

    $$sizex$$ and $$sizey$$

  • 0
    Avatar
    Renaud Mogenot

    It worked!

    I did look through the user manual for BrightAuthor but never found this command. I just used a Ctrl+F for "$$" and it showed me the perfect paragraph where it explains in plain text : to use a user variable as a command, use $$variablename$$...

    Sorry for my innability to read...

    Many thanks once again, looks like I'm back on track!

    Regards,

    Renaud.

  • 0
    Avatar
    Bright Scripters

    Success!

    Yes, there are hidden gems in the documentation :)

    Glad to have been able to assist.

    Please connect via info@brightscripters.com so we can geek out.

Please sign in to leave a comment.