Lumen help
Introduction
Streamroot instances are always exposed on the global namespace.
You can obtain the number of instances with the following:
`window.Streamroot.instances.length`
But in general, when you have only one instance on your page, you can access the data using
`window.Streamroot.instances[0]`
Example
When calling :
it returns :
API Table
Name |
Description |
dnaDownloadAllowed |
Getter/Setter to switch peer download ON or OFF, regardless of the network type |
dnaDownloadOnCellularAllowed | Getter/Setter to allow disallow peer download. This will be applied if the network type is Cellular (i.e., 5G, 4G ... ) |
dnaDownloadOnWifiEthernetAllowed | Getter/Setter to allow disallow peer download. This will be applied if the network type is Wi-Fi or ethernet. |
dnaUploadAllowed | Getter/Setter to switch peer upload ON or OFF, regardless of the network type |
dnaUploadOnCellularAllowed | Getter/Setter to allow disallow peer upload. This will be applied if the network type is Cellular (i.e., 5G, 4G ... ) |
dnaUploadOnWifiEthernetAllowed | Getter/Setter to allow disallow peer upload. This will be applied if the network type is Wi-Fi or ethernet. |
id | Returns the ID of the streamrooter running in the page. It is automatically generated. |
AllContents (in Bytes) | Stats that describe the whole session (Stats are aggregated over successive contents that have been plaed in case of a playlist.) |
currentContent (in Bytes) | Stats that describe the current content being played. |
realtime.dnaSources | Returns the current number of peers connected to the client |
effectiveDownloadAllowed | Return the effective state of download (Allowed or not). Depending on the network type, it will be calculated like so: `dnaDownloadAllowed` AND `dnaDownloadOnWifiEthernetAllowed` (if you are on Wi-Fi for instance). |
effectiveUploadAllowed | Return the effective state of upload (Allowed or not). Depending on the network type, it will be calculated like so: `dnaUpAllowed` AND `dnaUploadOnCellularAllowed` (if you are on Wi-Fi for instance). |
Explore CDN services