videojs / video.js

Video.js - open source HTML5 video player
https://videojs.com
Other
37.85k stars 7.43k forks source link

how to create quality selector in version 8 #8563

Closed xavier-che closed 7 months ago

xavier-che commented 7 months ago

Description

I have been trying for three days to find any information and answers, but all in vain. I tried to import 'videojs-contrib-quality-levels' and import 'videojs-hls-quality-selector', but always said "Property 'qualityLevels' does not exist on type 'Player'" and "Property 'hlsQualitySelector' does not exist on type 'Player'". Im using Angular for this, anyone can help me, plz....

Reduced test case

no

Steps to reproduce

as detailed

Errors

No response

What version of Video.js are you using?

8.9.0

Video.js plugins used.

No response

What browser(s) including version(s) does this occur with?

chrome

What OS(es) and version(s) does this occur with?

windows 10

welcome[bot] commented 7 months ago

👋 Thanks for opening your first issue here! 👋

If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines.

iblack10 commented 7 months ago

I don't think videojs-hls-quality-selector supports video.js v8 yet. I've had some success using jb-videojs-hls-quality-selector which is a fork that's been updated to work with v8.

xavier-che commented 7 months ago

I don't think videojs-hls-quality-selector supports video.js v8 yet. I've had some success using jb-videojs-hls-quality-selector which is a fork that's been updated to work with v8.

OMG! That works! thank you so much!