Skip to main content
User Community Portal

Hello, 

I work with a custom plugin and it has been noticed recently that we are receiving an error now on recent versions of Brightcove. It seems like it’s related to an update in Video.js versions. 

Error is:

"VIDEOJS: ERROR: Unable to initialize "comscore" plugin: TypeError: Class constructor Ua cannot be invoked without 'new'"

 

Error is reproducible on

  • Brightcove Player Version 7.18.1. (using Video.js Version 8.12.0)
  • Brightcove Player Version 7.21.0. (using Video.js Version 8.14.1)

Custom plugin working on 

  • Brightcove Player Version 6.67.7. (using Video.js Version 7.21.4)
  • Brightcove Player Version 7.17.2 (Tested earlier, now unavailable in the video cloud, but Video.js Version was 8.11.5 see here

I’m still debugging and trying to investigate on my end, but I was hoping someone had knowledge or suggestions surrounding that Videojs error when using a custom plugin. Thanks in advance.

Seems like this may be related to having our custom plugin as es5 rather than es6 

Related: https://github.com/videojs/video.js/issues/8034

I’ll update here when I have more of an idea what’s going on. 


Sounds good @William Roberts, keep us posted. This can help other users as well. 


Yup, as far as I can tell this was the issue. Things are working again for me. 


Glad to hear that. Thank you @William Roberts for sharing that with the community!


Reply