mirror of
				https://gitea.invidious.io/iv-org/videojs-quality-selector.git
				synced 2024-08-15 00:43:13 +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
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -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, | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue