0

Hide user variable from Brightsign app?

I'm making a presentation with a video and am adding some control buttons to stop/play/pause the video from the Brightsign app. I'm trying to make a toggle button for play/pause. I've got my UDP event set up perfectly and the toggle is working. I use a user variable called "pause" to determine what to do.

My only issue is, the "paused" variable shows up in the user variables under the Brightsign app. In an attempt to keep things super simple for my users so they don't get confused, is there a way to hide this variable so a user does not see it in the app?

5 comments

  • 0
    Avatar
    Lyndon

     

    While I'm not a javascript person, I got lucky with this one. 

    https://www.brightsignnetwork.com/download/Tools/skipvar.zip

     

    This has an html device page you can use to replace the one used to show your variables. If you're already using a custom one, I added a simple if statement into the html script to ignore the "paused" variable in the getuservars function. I've added some spacing below so you can see it clearly. The if statement checks for paused, and if ti's not paused, then the variable is pushed into the list. when tested on my player, paused isn't displayed.  This ba project was built using 4.6.0.14.

     

    if you're not using that release, it's fine. Just go to the variables tab, under properties in your ba version, and add the custom device page. 

     

    function getUserVars(callback)
    {
    console.log("getUserVars");
    sUrl="/GetUserVars";
    var varlist=new Array();
    $.get(sUrl,function(data,status,jqXHR)
    {
    un=jqXHR.responseText;
    xmlDoc = $.parseXML( un );
    $xml = $( xmlDoc );
    console.log("fetching variables...")
    $xml.find('BrightSignVar').each(function(){
    var name=$(this).attr('name');
    var val=$(this).text();

     

    if(name!='paused'){
    uv=new userVar(name,val);
    printObj(uv);
    varlist.push(uv);
    }

     


    });
    callback(varlist);
    });
    }

     

     

     

  • 0
    Avatar
    James King

    Just tested on my presentation and it worked! Thanks!

  • 0
    Avatar
    James King

    OK, nevermind, I spoke too soon. I've found a bug which I'm not sure how to get around. I have 5 user variables I want my users to be able to edit: Line1, Line2, Line3, Line4, and Line5 (these will just be text lines that they can edit to change messages in a live text state.) When you go to the device web page my variables show up as follows:

    Line1

    Line2

    Line3

    Line4

    Line5

    paused

    If we use the custom web page to remove the "paused" variable, edits made to line 5 are not taken. For example, with the custom web page removing the "paused" variable, I can enter some text in Line5 and this will be displayed in my Live Text state just fine. If I then try to edit Line5, for example deleting the text, when I Set Values, my edit is not taken and the text remains. This does not happen on the default web page.

    Any ideas?

  • 0
    Avatar
    Lyndon

    I can't think of what could cause this currently. I'll see if I can duplicate. what firmware are you running on your player? which player?

  • 0
    Avatar
    James King

    LS423 fw 6.2.63

Please sign in to leave a comment.