Panel | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
ON THIS PAGE
|
...
Specifies the default HWZ behavior. This value is off
by default. To enable it, set it to on
.
[string] storage_path
Creates a "Local Storage" subfolder in the specified directory. This folder is used by local storage applications such as the JavaScript storage class.
Anchor | ||||
---|---|---|---|---|
|
[string or double] storage_quota
Sets the total size (in bytes) allotted to all local storage applications (including IndexedDB). A BrightScript integer is only guaranteed to be able to represent a count of bytes up to 2GB so avoid using integers when calculating the size: Use float or double instead since they can represent values over 2GB (string can also be used but is not recommended). 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.
[roMessagePort] port
Configures the message port to which the roHtmlWidget instance will send events. When using initialization parameters, the port
parameter should be used instead of the SetPort()
method to ensure the script can catch load-started
, load-finished
, and load-error
events.
...
Enables or disables Chromium security checks for cross-origin requests, local video playback from HTTP, etc.
[Boolean] websecurity
: Enables Chromium security checks for cross-origin requests.[Boolean] camera_enabled
: Enables webpage access to USB cameras connected to the player (access is disabled by default). This allows support for WebRTC applications.[Boolean] insecure_https_enabled
: Instructs the widget to ignore security errors when connecting to insecure HTTPS hosts (insecure HTTPS is disabled by default). Enabling this feature makes the player insecure; it is not suitable for production environments and should only be used for testing.
With BOS 8.2 and later (Chromium69 and later), several new CORS checks have been added: security_params.web_securitywebsecurity
or enableSecurity(false)
do not disable all these checks. Use the following registry setting instead:
registry write html disable-web-security websecurity 1
This flag will take effect on all roHtmlWidget
instances, as opposed to previous flags which are only effective on the instance they are called on.
...
document_creation
: The script will run as soon as the document is created. This behavior is not suitable for any DOM operation.document_ready
: The script will run as soon as the DOM is ready. This behavior is equivelant equivalent to theDOMContentLoaded
event firing in JavaScript.deferred
: The script will run when the page load finishes.
...
Allows the user to set up one or more proxies. If proxy pac files are included, this method must be used to specify authentication parameters.
ifMessagePort
SetPort(port As roMessagePort)
...