# CDN Balancer Options
You can customize the CDN Balancer behavior by injecting a BalancerOptions
object to the Unified Plugin:
- JavaScript
- Java
- Kotlin
- Swift
let balancerOptions = {
// The profile you want to use, configured in your Codavel Panel. For more information on profiles go to https://documentation.npaw.com/product-guides/docs/setting-up-a-cdn-profile
profileName: 'yourProfileName (default: null)',
// The bucket you want to use, configured on the profile above. For more information on buckets go to https://documentation.npaw.com/product-guides/docs/adding-a-cdn-provider#add-cdn-provider
bucketName: 'yourBucketName (default: null)'
};
let unifiedPlugin = new UnifiedPlugin('yourAccountCode');
unifiedPlugin.setBalancerOptions(balancerOptions);
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
# Options
You can set the follow CDN Balancer options:
- JavaScript
- Java
- Kotlin
- Swift
let balancerOptions = {
profileName: 'yourProfileName (default: null)',
bucketName: 'yourBucketName (default: null)',
isLive: '<boolean> (default: false)',
videoId: '<string> (default: null)',
};
1
2
3
4
5
6
2
3
4
5
6
Parameters | Description |
---|---|
profileName | The profile you want to use, configured in your Codavel Panel |
bucketName | The bucket you want to use, configured on the profile above |
isLive | If true, the media is a LIVE content |
videoId | Custom video identifier for P2P connections |
NEED MORE INFO?
Get in touch with support@codavel.com.