0

The Application Web server

Hello. 

Is there any additional info of this feature that was introduced in FW 4.1.1.14?

I searched the documents but could not find anything useful. Will this feature be reserved only for BrightSign official applications?

All I could find was the new www folder in the BrightAuthor installation directory that has the Screenshot application in it. Is there an option of getting the unminimised version of the javascript scripts in there to learn from them (like the availability on your github account)?

Thank you.

3 comments

  • 0
    Avatar
    BrightSign TechDocs

    Hi Roni,

    The Application Web Server is not reserved for official BrightSign applications. It allows you to serve up a web page application on a player using the BrightScript roHttpServer object. You can useroHttpServer to create applications that communicate with the BrightScript backend to do pretty much anything you could imagine (given you have enough development resources).

    To create an Application Web Server link on the DWS, add the following code to your autorun/plugin script:

    localServer = CreateObject("roHttpServer", { port: 8080 })

    localServer.AddGetFromFile({ url_path: "/", content_type: "text/html; charset=utf-8", filename: "example.html"})

    localServer.SetupDWSLink("My New Tab")

    This code enables the Diagnostic Web Server, creates a URL handler that serves example.html at http://<player_ip>:8080, then creates a tab on the DWS that links to the URL handler.

    The tab generated by the SetupDWSLink() method has a number of customization options; see the Object Reference Manual entry for the SetupDWSLink() method for more details. 

     

  • 0
    Avatar
    Roni Starc

    Ok so it resides on the shoulders of the local webserver, I thought it was a separate thing.

    Should consider of swapping the ports of the diagnostic web server and the local, as the diagnostic is more intended for technicians that are usually more used to appending a port number to a web address than users (to whom the LWS with the applications will be intended.

    I  know it can be set by us in the autoconfig, but the first time the user makes a new publish the ports will be reversed once more.

    Is there any way you could link the uncompressed versions of the javascript, that consists the screenshot app? I've seen it uses angular and would really be a nice learning resource.

  • 0
    Avatar
    Lyndon

    I'm checking about sharing the code from the screenshot app

     

Please sign in to leave a comment.