mirror of
https://github.com/iv-org/videojs-quality-selector.git
synced 2025-04-25 09:49:11 -04:00
Add the ability to hide quality options
Related to https://github.com/iv-org/invidious/pull/3011
This commit is contained in:
parent
65505995d6
commit
294c48d119
@ -74,6 +74,10 @@ module.exports = function(videojs) {
|
||||
var player = this.player(),
|
||||
sources = player.currentSources();
|
||||
|
||||
sources = sources.filter(function(element) {
|
||||
return element.hidequalityoption == undefined;
|
||||
});
|
||||
|
||||
return _.map(sources, function(source) {
|
||||
return new QualityOption(player, {
|
||||
source: source,
|
||||
|
Loading…
x
Reference in New Issue
Block a user