Ad Blocker


KWIKplayer will automatically detect adBlockeders that are available on browsers/devices.

When an ad blocker is detected, the video will stop playing and will display a message to the user to disable ad blocker if they wish keep watching the video.

Editing this setting requires adding the "adblocker" key variable to the player's object, with the corresponding value. adblocker takes a boolean value. When set to true, the videos will stop playing when the ad blocker is detected. When set to false, this setting will not be activated.

When this key value is not set in the player, the default value will depend on whether or not ads have been added to player. If ads exist, adblocker detection will be activated. If no ads are added to the videos, adblocker will be disabled.


 <script>
    kwikMotion("player", {
            sources: [      //video sources
                {file: "https://clvod.itworkscdn.net/itwvod/smil:itwfcdn/admin/515002-R204MDrB22W6kG8.smil/playlist.m3u8"},
                {file: "https://clvod.itworkscdn.net/itwvod/smil:itwfcdn/admin/515002-R204MDrB22W6kG8.smil/manifest.mpd"},
                {file: "https://clvod.itworkscdn.net/itwvod/smil:itwfcdn/admin/515002-R204MDrB22W6kG8.smil/Manifest"}],
            adblocker: true,    //setting adblocker detection to true even without ads added to the video
        });
 </script>