admin管理员组文章数量:1357620
I have implemented video js player in my video streaming website and trying to play the vast tag ads but videojs-ima plugin is not loading properly.
Please help me to revolve this issue.
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 .html
I have implemented video js player in my video streaming website and trying to play the vast tag ads but videojs-ima plugin is not loading properly.
Please help me to revolve this issue.
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 http://videojs.github.io/videojs-contrib-ads/integrator/getting-started.html
Share Improve this question asked Mar 30 at 18:24 user9171561user9171561 1 1- Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. – Community Bot Commented Apr 3 at 0:33
1 Answer
Reset to default 0The error is telling you that the contrib-ads plugin (a dependency of the IMA plugin) was initialized too late, after the video source was loaded. Since you haven't provided reproducible code it's not possible to say what exactly must change. You may need to change the order scripts are loaded, or the way you are initializing the plugins. You will likely find it easiest to not load the video source until after the plugins are ready, i.e. don't include it in a <video>
element before the player is initialized.
videojs-ima has example code to follow: https://github/googleads/videojs-ima/tree/main/examples
本文标签: videojsvideojsima plugin is not loading properlyStack Overflow
版权声明:本文标题:video.js - videojs-ima plugin is not loading properly - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743978647a2570979.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论