Merge pull request #1 from iv-org/hide-quality-option

This commit is contained in:
Émilien Devos 2022-04-22 22:49:32 +02:00 committed by GitHub
commit 33e026eb51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,6 +77,10 @@ module.exports = function(videojs) {
var player = this.player(), var player = this.player(),
sources = player.currentSources(); sources = player.currentSources();
sources = sources.filter(function(element) {
return element.hidequalityoption == undefined;
});
return _.map(sources, function(source) { return _.map(sources, function(source) {
return new QualityOption(player, { return new QualityOption(player, {
source: source, source: source,