mirror of
https://github.com/iv-org/videojs-quality-selector.git
synced 2025-04-25 09:49:11 -04:00
Show selector with single source
This commit is contained in:
parent
7784a3135d
commit
aa06e72932
@ -77,10 +77,6 @@ module.exports = function(videojs) {
|
|||||||
var player = this.player(),
|
var player = this.player(),
|
||||||
sources = player.currentSources();
|
sources = player.currentSources();
|
||||||
|
|
||||||
if (!sources || sources.length < 2) {
|
|
||||||
return [];
|
|
||||||
}
|
|
||||||
|
|
||||||
return _.map(sources, function(source) {
|
return _.map(sources, function(source) {
|
||||||
return new QualityOption(player, {
|
return new QualityOption(player, {
|
||||||
source: source,
|
source: source,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user