Closed mateusz-wyka closed 11 months ago
I imported silvermine/videojs-quality-selector like this:
silvermine/videojs-quality-selector
import "@silvermine/videojs-quality-selector"; import "@silvermine/videojs-quality-selector/dist/css/quality-selector.css";
When app is ready I execute this:
player.value = videojs(videoPlayer.value, videoPlayerOptions.value, function() { let player = this; player.controlBar.addChild("QualitySelector"); });
then I get:
Uncaught Error: Component QualitySelector does not exist
@mateusz-wyka You have to call the function that you import, passing in the videojs object. Please see this example:
videojs
https://stackblitz.com/edit/vitejs-vite-56ugwh?file=src%2Fmain.ts
Environment
Describe
I imported
silvermine/videojs-quality-selector
like this:When app is ready I execute this:
then I get:
I will provide more information if needed. Any ideas what I can do about it?