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. 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',