videojs-hls-quality-selector
videojs-hls-quality-selector copied to clipboard
setCurrentQuality method needed
getCurrentQuality() allows us to get the current quality.
It would be good if we had a setCurrentQuality() method too.
This would allow us to programatically change the quality.
Many thanks for this wonderful plugin.
I agree this would be very useful
any updates on this?
actually setCurrentQuality method exists, not mentioned in the api docs though. Found it in the source code
Try this:
player.hlsQualitySelector.setQuality(720);
actually setCurrentQuality method exists, not mentioned in the api docs though. Found it in the source code
Try this:
player.hlsQualitySelector.setQuality(720);
it does not work
player.hlsQualitySelector.setQuality(720)

Night guys. Any solution here?
Hi, I found solution thought js, check this solution:
var player = videojs('videojs');
player.bigPlayButton.on('click', function(){
setTimeout(function(){
const qualityOptionsList = player.hlsQualitySelector._qualityButton.items;
console.log(qualityOptionsList);
const qualityOptionIndex = 4; //number of quality set
qualityOptionsList[qualityOptionIndex].handleClick();
}, 1000);
});
Whit this code change automatically of resolution