mirror of
https://github.com/iv-org/videojs-quality-selector.git
synced 2024-11-22 21:29:50 +00:00
Add the ability to hide quality options
Related to https://github.com/iv-org/invidious/pull/3011
This commit is contained in:
parent
aa06e72932
commit
ab84380b7d
@ -76,6 +76,10 @@ module.exports = function(videojs) {
|
||||
createItems: function() {
|
||||
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, {
|
||||
|
Loading…
Reference in New Issue
Block a user