videojs / videojs-contrib-ads

A Tool for Building Video.js Ad Plugins
http://videojs.github.io/videojs-contrib-ads/
Other
381 stars 257 forks source link

QUESTION: Ad bug in upper-left hand corner #508

Open sw8wm2013 opened 4 years ago

sw8wm2013 commented 4 years ago

Question:

Is it possible to add an Ad Bug/image in the upper-left hand of the ad roll. I'm using video.js and contrib-ads in a React app. I've looked through the documentation and don't see anything that seems to point me in the right direction. TIA.

marguinbc commented 4 years ago

Hello! This plugin is really only intended to provide an integration layer between video.js and an ad implementation like googleads/videojs-ima3 which handles requesting, displaying and playin ads. As far as I know with IMA3, you can't add an ad/bug or image to the ad roll.

It might be possible, at least with an inline player (as opposed to native/fullscreen on say iOS) to place a videojs overlay (https://github.com/brightcove/videojs-overlay) on top of the ad container with your bug/image. You could use contrib-ads to listen for the event ads-ad-started and showing your overlay then and removing it on ads-ad-ended.