HTML Development
HTML Best Practices

HTML Storage

3min
the following rohtmlwidget docid\ xljq5 yhdma2ssmpzimtk methods are used to configure html storage on the brightsign player setlocalstoragedir() setlocalstoragequota() setwebdatabasedir() setwebstoragequota() setappcachedir() setappcachequota() the behavior of rohtmlwidget storage methods has changed in os8 the new behavior is described below updating a player to os8 from 7 1 x or earlier will cause stored html data on the player to be reset initialization the above methods take effect when a new rohtmlwidget instance is created; they don't apply to the rohtmlwidget instance on which they are called (this is not the case for the the storage path and storage quota rohtmlwidget docid\ xljq5 yhdma2ssmpzimtk parameters) storage path the setlocalstoragedir() , setwebdatabasedir() , and setappcachedir() methods all configure the same storage path, so calling one of these methods will overwrite the storage path configured by the other methods without a storage path (for example, when you are using an 'incognito' browser), nothing will persist when you are finished with the chromium instance if you want data to persist through reboot and widget creation, you must set a storage path when non persistent (incognito) mode is used, 10% of the total system memory is reserved for browser storage this memory will be shared between multiple rohtmlwidget instances storage quota the setlocalstoragequota() , setwebstoragequota() , and setappcachequota() methods all configure the same storage quota, which applies to all persistent html storage on the player if the storage path is specified without a storage quota, chromium defaults to reserving 1gb plus 10% of the total size of the storage device if there are multiple rohtmlwidget instances, the configured or default quota is shared among them