Overlay Ad
Enable static ads in the video player
This demo showcases how you can enable static overlay ads within the video player.
                setup.js
                        js
                        var conf = {
  key: '<YOUR PLAYER KEY>',
  advertising: {
    adBreaks: [{
      tag: {
        url: adUrl,
        type: adType
      }
    }],
    adContainer: function() {
      return document.getElementById('my-element');
    }
  }
};
  
var source = {
  dash: 'https://cdn.bitmovin.com/content/assets/sintel/sintel.mpd',
  hls: 'https://cdn.bitmovin.com/content/assets/sintel/hls/playlist.m3u8',
  poster: 'https://cdn.bitmovin.com/content/assets/sintel/poster.png',
};
var playerContainer = document.getElementById('player-container');
var player = new bitmovin.player.Player(playerContainer, conf);
player.load(source);- Position is configurable
- Size is configurable
- Click through url is configurable
- Works best with VAST