Skip to main content
Solved

Custom Plugin Failing After Recent Upgrades

  • 24 July 2024
  • 4 replies
  • 51 views

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.

4 replies

Badge +2

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. 

Userlevel 4
Badge +3

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

Badge +2

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

Userlevel 4
Badge +3

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

Reply