Bitmovin Player
Bitmovin Player
Setup
1. Load the plugin script
<script src="https://cdn.watchingthat.net/***.wtat.plugin-bm_ima.min.js"></script>You must replace *** with the Watching That customer ID received from us.
2. Bitmovin configuration
In the advertising section of your player config insert the following code
onAdsManagerAvailable: function(IMAAdManager) {
try {
player.wtAdTracer.setAdManager(IMAAdManager);
} catch (e) {
console.error('The Watching That plugin failed to load.', e.message);
}
}3. Start the plugin
Start the plugin after instantiating the player but before calling player.load(...):
const player = new bitmovin.player.Player(container, conf);
try {
wtAdTracer({apiKey: '<Watching That API key>'}, player);
} catch (e) {
console.error('The Watching That plugin failed to load.', e.message);
}
player.load(
// ...
);See the Plugin Configuration Reference for other config params you can use for the plugin (only apiKey is required).
You can retrieve the API key from the Watching That app.