kmoskwiak / videojs-resolution-switcher

Resolution switcher adds the ability to select the video quality in video.js player.
https://kmoskwiak.github.io/videojs-resolution-switcher/
Other
403 stars 243 forks source link

Check for videojs.default then fallback to videojs when videojs is not global #123

Open endyquang opened 6 years ago

endyquang commented 6 years ago

I ran into an issue when trying to import this package, it said that videojs.getComponent is not a function. Then i found out where this issue came from and make a minor fix for it. So hope you could merge this soon.

sam-albon-li commented 5 years ago

We were facing the same issue, using webpack, and the changes from @endyquang fixed it for us too.