roHttpServer sample code
Run the sample code from the BrightSign shell BrightSign> script rohttpserver.brs Get the code here...
Search for a command to run...
Series
BrightAuthor plugin development with BrightScript, the scripting programming language for the BrightSign player.
Run the sample code from the BrightSign shell BrightSign> script rohttpserver.brs Get the code here...
For effective BrightScript development for BrightSign, we recommend the following steps: Read the rest here...
In favor of immutability, creating a copy of an argument is required. When it comes to nested structure, that could become tricky. In BrightScript, cloning nested Associative Arrays is as simple as: clonedAA = parseJson( formatJson( someNestedAA ) )
Sample brightscript parser to get you started with processing a feed with url links to media files. This parser is intended to work with BS:Connected On Demand state or BrightAuthor Classic Video Play File state. Sub feedParser(xmlFileName$ as String...
Associative Arrays in BrightScript are so much easier to work with in comparison to working with XML elements, which is why I like to convert XML to AA. Once converted to Associative Array, saving to JSON is just as easy with FormatJSON(). BrightScri...
Push and pop are great but what if you need to insert an item in the middle or an array without overwriting the item? sub main() list = [1,2,3,4] ' Expectresult: [1,"foo",2,3,4] print arrayInsert( list, "middle", 1 ) : printList( list ) ...