Player APIs (BrightScript & Ja...
...
Object Reference
Input/Output Objects

roUsbFilesystem

4min
this object allows supported brightsign players to expose a local file as a usb mass storage device when connected to a usb host port on another device (for example, a pc or television ) the host acts as if it is talking to a usb thumb drive or usb hard drive, but the reads and writes go to the specified local file on the brightsign it requires a file containing a filesystem one way to make such a file is dd if=/dev/zero of=/storage/sd/test img bs=4k count=2k mkfs vfat /storage/sd/test img normally the local file would be prepared beforehand with a filesystem offline (any method that captures a raw copy of a filesystem should work) brightsign players with usb c (except for ls3 and ls4) can use this object ifusbfilesystem enable(filename as string) as boolean expose an existing filesystem image as a usb mass storage device disable() as boolean remove an existing filesystem image as a usb mass storage device examples to create a filesystem (using the file from the example above) fs = createobject("rousbfilesystem") result = fs enable( {filename "sd\ test img"} ) the result is a boolean a result of true means that the filesystem has been successfully created to remove a filesystem result = fs disable()