Nonstop Javascript SDK
Playing Content Nonstop
In order to play content Nonstop the client app should pass an additional parameter to GAM.
There is one additional parameter:
- cbp - An integer set to
0or1- with1indicating reduced ad load, and0standard ad load
This should be passed to player framework as an initialization parameter which will then handle passing this to GAM as part of its Client-Side Ads implementation.
function setUpAndEmbedPlayer() {
window.datg.player.Player.setEnvironmentConfig({
brand: playerSettings.brandId,
device: playerSettings.deviceId,
environment: playerSettings.environment
});
const videoSettings = {
'cbp': 1
};
window.datg.player.Player.embed(playerId, element.find("div")[0], 'lfp', videoSettings);
}