Autorun Files
As was covered, player provisioning consists of applying a Setup to the player which includes the installation of a Player App. The Player App must contain an autorun.brs file which, as an example, may instruct the player to display a specific .html file, either local on the player or on an external website. Alternatively, the autorun may instruct the player to check a particular URL for updated presentations and/or content and, if new files are available, download them and play them.
There are three autorun-related files:
autorun.brs (may also be referred to as “the autorun” or “autorun file”)
autorun.zip
autozip.brs
These have similar-sounding names, but each term has a different function so it’s important to not conflate the terms.
Upon bootup, the player searches for certain files. The player’s search follows a prescribed sequence as shown below.
Players will search for storage devices in a predefined order.
The player first looks for an autorun.brs file in the root directory of the first storage device it encounters.
If found, autorun.brs is executed.
If an autorun.brs file is not found, the player looks for an autorun.zip file in the same root directory.
If an autorun.zip file is found and it also contains within it an autozip.brs file, the player will unzip the autorun.zip file, in the process overwriting any existing files on the storage device.
The player will then reboot.
If these files are not found on the first storage device, the player will repeat these steps on the next storage device, if available.
If an autorun.zip is not found on any of the storage devices, the player will query the BSN.cloud provisioning service to see if the player has previously been provisioned with BSN.cloud.
Both autorun.brs and autozip.brs must be written in BrightScript and be given the specific filenames indicated.
Additional information about these files can be found here.
Below are sample autorun.brs and autozip.brs files for reference.
Sample autorun.brs
Sample autozip.brs
A sample autozip.brs file can be downloaded here:
https://www.brightsignnetwork.com/download/SupportFiles/autozip.brs