How to switch to use Bitmovin Advertising Module(BAM) in web player SDK?

Hello Community, did you know that Bitmovin Web player SDK supports 2 client side advertising modules.

  • IMA SDK : Bitmovin player integrates Google IMA web client side SDK for playback of client side Ads. This is enabled by default and is the recommended module when using Google DFP/Ads server.

  • Bitmovin Ads Module (BAM) : This is in-house player module implementing IAB VAST/VMAP specification. This is recommended be used when there is no specific need to use IMA SDK. This provides some additional features compared to integration with IMA module wherein Bitmovin player is dependent on features available from IMA SDK.

Please checkout this tutorial on setting up Ads with Bitmovin web player.

How to switch to use BAM instead of default IMA Ads module?

There are 2 steps needed to enable BAM instead of the default IMA Ads module.

Step 1 : Fetch BAM module. Make sure to fetch same version as the rest of Bitmovin player(modules) JS.

  <script type="text/javascript" src=""></script>

Step 2 : Add BAM module to player before creating player object

With default(full) Bitmovin player JS

  var player = new bitmovin.player.Player(container, config);

With modular Bitmovin player

  var player = new bitmovin.player.core.Player(container, config);

Please checkout following references to learn more about related topics

Setting up Ads with web player
Bitmovin modular web player overview
Bitmovin modular player sample code

If you don’t already have a Bitmovin account, sign up for a free trial on our website to checkout this and other cool features of Bitmovin player SDKs.

1 Like