Open DrLightman opened 8 years ago
(a) If you define like
videojs.plugin('ads-setup', function (opts) {
while it's true that video.ads-setup({...})
will throw an error you can obviously use
video['ads-setup']({...))
or configure the plugin at video js initialisation like explained in the docs
videojs('vidId', {
plugins: {
'ads-setup': {...}
}
});
(b) thats an error in our readme :tada: correct code is
adsEnabled: !!opts.adsEnabled
will fix it asap
Or it's just me that I don't know videojs :)
(a) In the step 4 you write:
But the videojs docs, it says to use a plugin like:
So I'm not supposed to use it like:
Because Javascript will throw an error, am I right? I should define the plugin as:
Instead?
(b) In the step 4 again:
This throws an error in console:
That's it for now, and sorry I'm new to videojs & videojs-vast :-P