Skip to main content
User Community Portal
Solved

Custom Plugin Failing After Recent Upgrades


Forum|alt.badge.img+2

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.

Best answer by William Roberts

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. 

View original
Did this topic help you find an answer to your question?

4 replies

Forum|alt.badge.img+2
  • Author
  • New Participant
  • 2 replies
  • Answer
  • July 24, 2024

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. 


Varsha Ahir
Forum|alt.badge.img+3
  • Community Manager
  • 78 replies
  • July 24, 2024

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


Forum|alt.badge.img+2

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


Varsha Ahir
Forum|alt.badge.img+3
  • Community Manager
  • 78 replies
  • July 31, 2024

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings