Closed vpaskovic closed 6 years ago
What build tool are you using? I believe you need to register the ads plugin with certain build setups. Try adding this: videojs.registerPlugin('ads', contribAdsPlugin);
We believe this is fixed in master by this PR. The fix will be released soon: https://github.com/videojs/videojs-contrib-ads/pull/321
@vpaskovic Is this still an issue for you?
Yes still not able to implement it to work, has someone else tried in the way described up? Gulp is used.
You may also want to require('videojs-contrib-ads');
after require('video.js');
.
That said, if you could provide a reduced test case in something like JSBin, it would help with debugging the setup
Also take a look at this example in case it helps: https://github.com/videojs/videojs-contrib-ads/pull/312/files#diff-80b85f7007dced052a8e8ddb693843cb
@vpaskovic Did those suggestions help?
Closing since there hasn't been a response for awhile, please reopen or open a new issue if help is still needed. The new module import example I linked to should hopefully clarify how to do this!
I get this error all time .ads is not a function
I use AngularJS (1) and
and after
this throws error
please help