Site icon Anthony Carbon

VIDEOJS: ERROR: videojs-contrib-ads has not seen a loadstart event 5 seconds after being initialized, but a source is present.

VIDEOJS: ERROR: videojs-contrib-ads has not seen a loadstart event 5 seconds after being initialized, but a source is present. This indicates that videojs-contrib-ads was initialized too late. It must be initialized immediately after video.js in the same tick. As a result, some ads will not play and some media events will be incorrect. For more information, see https://github.com/videojs/videojs-contrib-ads#important-note-about-initialization – video.min.js:12

How to fix it?

I’m using Video.js 7.6.5 to fix it I use this version version 6.0.0 and the errors is gone. The second mistake from my setup is I downloaded Video.js 7.6.5 and update it to my hosting, which means I did not use a CDN links. Self-hosted links.

This is the working and effective CDN I used to fix the issue. Hopefully it will works on your end too.

<script src="https://googleads.github.io/videojs-ima/node_modules/videojs-contrib-ads/dist/videojs.ads.min.js"></script>
Exit mobile version