-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
External plugins are not working since version 7.11.0 #7091
Comments
Hey! We've detected some video files in a comment on this issue. If you'd like to permanently archive these videos and tie them to this project, a maintainer of the project can reply to this issue with the following commands:
|
Since version 7.11.0 we are not able to register external plugins. An issue is open [1] and we are waiting for an input [1]: videojs/video.js#7091
Since version 7.11.0 we are not able to register external plugins. An issue is open [1] and we are waiting for an input [1]: videojs/video.js#7091
Since version 7.11.0 we are not able to register external plugins. An issue is open [1] and we are waiting for an input [1]: videojs/video.js#7091
Thanks for opening the issue, we'll definitly take a look. |
Hey! We've detected some video files in a comment on this issue. If you'd like to permanently archive these videos and tie them to this project, a maintainer of the project can reply to this issue with the following commands:
|
@lunika interesting, so, that other plugin is being registered fine but quality-levels isn't? |
Yes, my plugin developed in the same project is registered but not videojs-http-source-selector and videojs-contrib-quality-levels |
Thanks, that's helpful to try and narrow things down! |
Since version 7.11.0 we are not able to register external plugins. An issue is open [1] and we are waiting for an input [1]: videojs/video.js#7091
Since version 7.11.0 we are not able to register external plugins. An issue is open [1] and we are waiting for an input [1]: videojs/video.js#7091
Since version 7.11.0 we are not able to register external plugins. An issue is open [1] and we are waiting for an input [1]: videojs/video.js#7091
Since version 7.11.0 we are not able to register external plugins. An issue is open [1] and we are waiting for an input [1]: videojs/video.js#7091
I'm facing the same issue |
Since version 7.11.0 we are not able to register external plugins. An issue is open [1] and we are waiting for an input [1]: videojs/video.js#7091
Since version 7.11.0 we are not able to register external plugins. An issue is open [1] and we are waiting for an input [1]: videojs/video.js#7091
Since version 7.11.0 we are not able to register external plugins. An issue is open [1] and we are waiting for an input [1]: videojs/video.js#7091
Same issue here |
I did a quick check, and it seems to be working for me, both in using import and using require. Looking at the code that @lunika linked to, it seems like everything should be working fine? Only think I can think of there is that it's a weird interaction with typescript maybe? |
I had the same issue in an Angular app when I tried to integrate VideoJS and added the videojs-contrib-quality-levels plugin. It seems that the |
I was working on what you ask @gkatsev, I updated first on version 7.11.7 and I have now a different error:
Should I open a new issue for this case ? |
Since version 7.11.0 we are not able to register external plugins. An issue is open [1] and we are waiting for an input [1]: videojs/video.js#7091
I tried on codesandbox to reproduce this issue but it's working... If someone else in this ticket issue want to take a look: https://codesandbox.io/s/sad-bird-8n4uc |
Since version 7.11.0 we are not able to register external plugins. An issue is open [1] and we are waiting for an input [1]: videojs/video.js#7091
Ok so I have a local version working. I removed it to regenerate a fresh one and since I don't have this issue, my code is working with videojs 7.11.4... Can everybody reproduce this ? But I still have the issue related here: #7091 (comment) |
I made a PR on my project resolving the issue as explain in my last message: openfun/marsha#899 |
@lunika good to hear that the main issue went away. As for the
|
Spoke with @evanfarina as he has a bit more experience with yarn, and he found that, particularly with versions of Video.js that update VHS, he needs to do a little dance to get it working right with the yarn lock file. In addition, this might be related to #7109 in that addressing #7019 could improve things so that you don't need to do any of these shenanigans. It's something we'll investigate. |
I tried again with version When I list the package installed I have this
There are 2 versions of |
A little update. Version I think we can now close this issue. Thanks for your help @gkatsev |
Glad the uninstall-reinstall dance works. I was hoping that adding peer dependencies in v7.12 would've helped, but it seems like it doesn't. |
Running yarn remove video.js and then add didn't work here. Trying clearing out the lock file next. |
Because VHS is inlined into Video.js, we should depend on what VHS depends on. Fixes videojs#7091, fixes videojs#7209, fixes videojs#7144, fixes videojs#7109
Description
I'm trying to upgrade from version 7.10.2 to version 7.11.4 but my code is not working anymore.
The problem is with external plugins. I'm using plugins videojs-http-source-selector and videojs-contrib-quality-levels to have a quality selector in the UI.
Since version 7.11.0 both plugins are not registered anymore. If I force to register them calling explicitly
videojs.registerPlugin
in my module they are registered but then I have error about non existing MenuComponent registered in thevideojs-http-source-selector
plugin.In my module I first import them, then I create an instance of videojs and at this time I have an error telling me that the plugin
httpSourceSelector
does not exists.My code was working like this in version 7.10.2 of videojs. I follow both plugins documentation to setup them.
Additional Information
Please include any additional information necessary here. Including the following:
versions
videojs
what version of videojs does this occur with? 7.11.0 and above
plugins
are any videojs plugins being used on the page? If so, please list them below.
videojs-http-source-selector: 1.1.6
videojs-contrib-quality-levels: 2.0.9
The project is in typescript (4.1.5) and built using webpack (5.21.2)
Thanks for your help
The text was updated successfully, but these errors were encountered: