0

Can HTML5 have JavaScript that triggers a state change?

I plan on creating a site that our managers can post information to our employees from.

This site will vary on length depending on how much the managers put in.

Once all the pieces have been shown I plan on setting up a JavaScript trigger that I need to interact with the BrightSign and tell it to transition to the next state in the list.

Ideally something like the following would be my flow.

Home > HTML5 > Images > Video > Home

2 comments

  • 1
    Avatar
    Lovepreet Singh Jassal

    Hi Korey,

    I was working on same kind of project and I found a way to do it. I could say its a kind of hack/workaround.

    It makes use of Javascript/Brightscript objects. I use BSDatagramSocket to send a UDP to localhost which would then trigger a UDP input event on the current state in BrightAuthor and take it to next state.

    You will need to enable external data on HTML state to enable Javascript-Brightscript objects

    Example javascript code:

    var bsSocketMessage = new BSDatagramSocket();

    bsSocketMessage.SendTo("127.0.0.1", "5000" , "COMMAND FOR EVENT GOES HERE" );

     

  • 0
    Avatar
    Brandon

    You can also use the Local Wrung Server if enabled, see
    http://support.brightsign.biz/entries/23862532-Can-HTML-or-Javascript-fire-a-brightsign-event-
    But BSDatagramSocket is more direct and easier to restrict to just the player.

Please sign in to leave a comment.