Use QUANTEEC with Server Side Ad Insertion (SSAI)
SSAI is used to insert ads on the server side. The ads may be targeted and may be different from one viewer to another. By default, the QUANTEEC Plugin uses segment metadata to identify the segments to send from one viewer to another. However, if the users are not watching the same ad, they should not exchange video data.
To manage SSAI, it is possible to set the parameter checkUrls
to true in the QUANTEEC configuration. With this parameter, the exact URL of the segments will also be checked before sending them. Hence, two viewers will be able to share the main video but not the ads if they are behind different URL addresses.
- JS
- Java
- Kotlin
var quanteecConfig = {
quanteecKey: "<your-quanteec-key>",
checkUrls:true
};
QuanteecConfig quanteecConfig = new QuanteecConfig("videoID", "your-quanteec-key");
quanteecConfig.checkUrls = true
QuanteecCore quanteecCore = new QuanteecExoCore(Context, quanteecConfig);
val quanteecConfig = QuanteecConfig("videoID", "your-quanteec-key");
quanteecConfig.checkUrls = true
val quanteecCore = QuanteecExoCore(context, quanteecConfig);
In some situations, checking the URL may be an issue if the URLs are different for every viewer. As an example, the URL may include a token identifying the viewer. When needed, ignoreTokenInUrls
can be used with checkUrls
in order to define a token or a pattern (in javascript or Java regex format) to ignore when comparing two URLs.
- JS
- Java
- Kotlin
var quanteecConfig = {
quanteecKey: "<your-quanteec-key>",
checkUrls:true
ignoreTokenInUrls:"token-to-ignore"
};
QuanteecConfig quanteecConfig = new QuanteecConfig("videoID", "your-quanteec-key");
quanteecConfig.checkUrls = true
quanteecConfig.ignoreTokenInUrls = "token-to-ignore"
QuanteecCore quanteecCore = new QuanteecExoCore(Context, quanteecConfig);
val quanteecConfig = QuanteecConfig("videoID", "your-quanteec-key");
quanteecConfig.checkUrls = true
quanteecConfig.ignoreTokenInUrls = "token-to-ignore"
val quanteecCore = QuanteecExoCore(context, quanteecConfig);
Dynamic Ad Insertion (DAI)
Similarly to SSAI, DAI is used to insert ads on the server side. The ads may be targeted and may be different from one viewer to another. As its name implies, DAI allows for more flexibility than SSAI, enabling dynamic and fine-grain targeting at scale, while serving ads and video content in the same stream.
QUANTEEC is fully compatible with DAI. If you wish to prevent users from exchanging ad video data, you may tweak your QUANTEEC configuration as detailed above, or make use of the various range parameters available in the panel.