mirror of
https://github.com/kmoskwiak/videojs-resolution-switcher.git
synced 2025-10-03 09:49:21 +02:00
Merge 89cc2f46ca
into e22c3aa043
This commit is contained in:
commit
d0c7a7c064
1 changed files with 3 additions and 2 deletions
|
@ -357,13 +357,14 @@
|
|||
player.one('loadedmetadata', function(){
|
||||
var representations = hls.representations();
|
||||
var _sources = [{ src: 'auto', type: 'application/x-mpegURL', label: 'auto', res: 0}];
|
||||
var i = 1;
|
||||
|
||||
representations.map(function(representation){
|
||||
_sources.push({
|
||||
src: representation,
|
||||
type: 'application/x-mpegURL',
|
||||
label: representation.height,
|
||||
res: representation.height
|
||||
label: typeof representation.height != 'undefined' ? representation.height : '#'+(i++),
|
||||
res: typeof representation.height != 'undefined' ? representation.height : 0
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue