googleads / videojs-ima

IMA SDK Plugin for Video.js
Apache License 2.0
450 stars 284 forks source link

Error: videojs-contrib-ads has not seen a loadstart event 5 seconds after being initialized #863

Closed egmatt closed 4 years ago

egmatt commented 4 years ago

We are implementing prebid to generate our adTagUrl. The ima plugin is initialised after the adTagUrl is generated. We've never seen the error before this, through multiple implementations using ad tags from different sources. We've attempted to fix the issue via code changes in our code base to no avail. The basic flow of our code looks like this:

const player = videojs('my-player', options);
auction(options, (adTagUrl) => {
  const imaOptions = {};
  player.ima(imaOptions);
});

Setup: Video.Js 7.4.1 videojs-contrib-ads 6.6.4 videojs-ima 1.6.0

arnaudcasame commented 4 years ago

Hi,

It seems that you're having issues with your pre-bid implementation, I was not able to reproduce the behavior using the advanced example sample. Have you tried reproducing the behavior after upgrading to the latest version of the plugin?

egmatt commented 4 years ago

So it turns out it was in fact our implementation. We managed to get it sorted right before closing up shop for the weekend. Prebid delayed the init long enough to cause issues. We changed the order of implementation and it sorted itself out. Thanks for your help and quick reply!