Skip to content

Commit

Permalink
Add the ability to hide quality options
Browse files Browse the repository at this point in the history
  • Loading branch information
unixfox authored Apr 13, 2022
1 parent aa06e72 commit ab84380
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/components/QualitySelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit ab84380

Please sign in to comment.