javascript - Videojs Vast Play Button -
we have problem play button (videojs + videojs vast plugin). if no commercial playing, big play button has no function, little play button. there workaround big play button working.
example
// init first player videojs('vid_673732', { "controls": true, "autoplay": true, "preload": "auto" }, function () { var videoplayer = this; videoplayer.muted(false); videoplayer.ads(); videoplayer.vast({ url: "http://ad3.adfarm1.adition.com/banner?sid=3108095&wpt=x", skip: "-1" }); // vast link delivering test ad videoplayer.ga(); videoplayer.on("loadedmetadata", function () { videoplayer.play(); }); }); // init second player videojs('vid_673662', { "controls": true, "autoplay": true, "preload": "auto" }, function () { var videoplayer = this; videoplayer.muted(false); videoplayer.ads(); videoplayer.vast({ url: "http://ad3.adfarm1.adition.com/banner?sid=2721754&wpt=x", skip: "-1" }); // vast link not delivering ads videoplayer.ga(); videoplayer.on("loadedmetadata", function () { videoplayer.play(); }); });
example: hier (example autoplay , not big play button)
thanks
thomas
i had similar issue.
it turned out videojs-ads plugin. has since been resolved. can find more details on github: https://github.com/theonion/videojs-vast-plugin/issues/64
i recommend updating videojs ads plugin: https://github.com/videojs/videojs-contrib-ads
Comments
Post a Comment