When useing video.js auto-setup mode (passing options via data-setup attribute) there's an error
Uncaught TypeError: Cannot read properties of undefined (reading 'contribAdsSettings')
And it's happening because plugins expect player as first parameter and options as second one.
Here you can see that my options are in player variable. Options variable is in this case undefined.
Code from the docs says
player.ima(imaOptions);
Which also doesn't work, but this works:
player.ima(player, imaOptions);
But I can't do this when passing options to data-setup
I'm useing video.js 8.0.4
When useing video.js auto-setup mode (passing options via data-setup attribute) there's an error
Code from the docs says
Uncaught TypeError: Cannot read properties of undefined (reading 'contribAdsSettings')
And it's happening because plugins expect player as first parameter and options as second one. Here you can see that my options are in player variable. Options variable is in this case undefined.player.ima(imaOptions);
Which also doesn't work, but this works:player.ima(player, imaOptions);
But I can't do this when passing options to data-setup I'm useing video.js 8.0.4