Streamroot provides for several hosting options depending on the preference of the content provider.
Certain broadcasters may want to hide Streamroot's name from requests made by your page, or host the Streamroot library by yourself. This can be done in the dnaConfig object, with custom hosting options.
Hosting options allow you to change the path to Streamroot's Library folder or the URL of Streamroot's Backend to match your policy.
3 parameters are available: libPath,
libHost
and backendHost
.
libPath
and libHost
help you customize the location of Streamroot Library. Note that libPath
and libHost
are mutually exclusive.
If the 2 parameters are set at the same time in the dnaConfig, our module will throw at initialization.
libPath - string (optional) |
libHost - string (optional) |
This field is used to specify a custom URL for the host/path from where to load Streamroot's modules. If undefined, those modules will be loaded from Streamroot's servers. |
This field is used to specify a custom host that will replace the default host of the Streamroot modules (cdn.streamroot.io). If undefined, those modules will be loaded from Streamroot's servers. |
Example
dnaConfig: {
"libPath": "mywebsite.com/<dna-client location>" }
Or
dnaConfig: {
"libHost": "mywebsite.com" }
backendHost - string (optional)
This field is used to specify a custom host for Streamroot multi-AZ backend. Multi-AZ ensures you a higher availability by redirecting Streamroot backend to the fastest cloud region. If undefined, this URL will stay the Streamroot default: backend.dna-delivery.com
This field is replacing backendUrl. You cannot use the same URL for backendUrl and backendHost.
Example
dnaConfig: {
"backendHost": "sr.mywebsite.com"
}