Current version: (AGNO-JavaScript API)

Configuration

This feature can be used as follows:


        // required parameters:
        brand: "agnoplay",
        videoId: "Mbdskc9KsAii",
        url: window.location.href,
        ...
        // add the following:
        blockAdBlocker: true,
      

Blocking Ad Blocker

This is an example of the adblocker blocking feature. This feature can be enabled or disabled in order to make sure that ads in the player will not be blocked by any adblocker browser extension.

Player has preconfigured texts for error message and button text, which can be overridden by passing adBlockerMessage and adBlockerButtonText parameters in the config. Button color is also changeable from config, by setting color to this parameter player_skin_color with see example below:


        // required parameters:
        brand: "agnoplay",
        videoId: "Mbdskc9KsAii",
        url: window.location.href,
        ...
        // add the following:
        blockAdBlocker: true,
        adBlockerMessage: 'some error text',
        adBlockerButtonText: 'some button text',
        playerSkinColor: '#0051FF'