@bitmovin/player-integration-ias
v1.0.3
Published
IAS integration for the Bitmovin Web Player
Downloads
100
Readme
Bitmovin Player IAS Web SDK Integration
This project integrates the Integral Ad Science (IAS) Web Video SDK into the Bitmovin Web Player.
Limitations
- The integration currently only works with Freewheel ads, which can be scheduled client-side or server-side via the Bitmovin Yospace integration.
- The IAS Web Video SDK supports two modes, Campaign Monitoring (CM) and Firewall (FW). This integration currently supports the CM mode only.
Usage
Basic Setup
- Build the integration:
$ npm ci $ npm run build
- Include the IASVANS javascript file in your HTML document. The integration is currently tested with
__IASVANS_3.7.0.js
. - Include
bitmovin-player-integrations-ias.js
in your HTML document. - After creating an instance of the Bitmovin Player, create an instance of the IAS integration.
var player = new bitmovin.player.Player(document.getElementById('player'), config); var ias = new bitmovin.player.integrations.Ias(player, { partnerCode: "YOUR PARTNER CODE", // Provided by IAS adNetworkId: "YOUR AD NETWORK ID", // Provided by IAS debug: true });
- No other code is needed after this. The integration will now listen for the Bitmovin Player ad events, and report them as necessary.
An example of this setup can be seen in the example
directory. To test this example page, simply run npm run start
which will serve the example/index.html
page in your browser. If you are using the Bitmovin Yospace Integration, please see the example/yospace.html
page.
npm
The integration is also available in the NPM repository.
npm install @bitmovin/player-integration-ias