This object provides miscellaneous device configuration and customization methods.
ifFailureReason
GetFailureReason() As String
Returns helpful information if one of the ifDeviceCustomization methods fail.
ifDeviceCustomization
WriteSplashScreen(filename As String) As Boolean
Removes the default splash screen (or a previously set splash screen) and replaces it with the specified image file. The image file must use a supported format. This method returns True
on success and False
on failure.
EnumerateExtensions() As Array
Returns an array of the extensions that are installed on a player.
FactoryReset(confirm As String) As Boolean
Applies a factory reset to the player. This method must be passed the string "confirm" to work; otherwise, it will return False and do nothing. If successful, this method will reboot without a return value. The following steps will be carried out during a factory reset:
All files are wiped from the BOOT:
drive (including custom splash screens and autorun scripts).
All values are wiped from the registry.
The RTC is reset (if the player has an RTC).
The FLASH:
drive is wiped.
This method allows the USB OTG (On The Go) port on the AU335 to be dynamically configured to host or gadget mode. In the host role, the USB port follows standard behavior (it allows USB devices to be plugged into it). In the gadget role, the player can behave as a USB device (for example, roUsbFilesystem). This method will return false on platforms other than the AU335.
This script switches to gadget role and presents sd:/test.img as a filesystem to a connected USB host:
dc=CreateObject("roDeviceCustomization")
dc.ConfigureAsUsbGadget(1)
fs = CreateObject("roUsbFilesystem")
fs.Enable({filename: "SD:test.img"})
If ConfigureAsUsbGadget(1)
isn't called on an AU335, then the USB will only run in host mode, regardless of what is connected.
Note that on all BrightSign players other than AU335, the USB port doesn't need any configuration to work in USB OTG mode. The USB stack switches automatically between host and gadget depending on what is connected to the port.
EncryptStorage(device As String, params As roAssociativeArray) As Boolean
Encrypts the contents of a storage device using an encryption key stored in the private section of the player registry. This prevents other devices from reading the names or contents of files on the storage device (though file metadata will still be readable). The storage device can still be mounted on other devices, which can list, delete, and copy files (even though they cannot read them).
Use the device
parameter to specify which storage drive to encrypt (see here for a list of valid drive names). Encryption parameters are passed as an associative array, which can contain the following: