mirror of
https://github.com/iv-org/videojs-quality-selector.git
synced 2024-11-23 05:39:44 +00:00
Merge pull request #1 from iv-org/hide-quality-option
This commit is contained in:
commit
33e026eb51
@ -77,6 +77,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…
Reference in New Issue
Block a user