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 committed Apr 28, 2024
1 parent 6550599 commit 294c48d
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 @@ -73,6 +73,10 @@ module.exports = function(videojs) {
createItems() {
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 294c48d

Please sign in to comment.