Example

// For videojs, we can use the player's own API to set both the source URL and MIME-type of the ad asset.
// Assume "player" refers to a videojs player instance and that we are playing our ads in it, as on mobile.
var customBehaviours = {
setVideoSource: function(mediaFile, element) {
player.src({
src: mediaFile.url,
type: mediaFile.mimeType
});
}
};
var adPlayer = OO.Pulse.createAdPlayer(adContainerDiv, null, null, customBehaviours);