Ignore quality options if can't find matching bitrate
This commit is contained in:
parent
f88ae78e0a
commit
1c647504c9
|
@ -996,7 +996,7 @@ export default Vue.extend({
|
|||
if (this.maxFramerate === 60 && quality.height >= 480) {
|
||||
for (let i = 0; i < this.adaptiveFormats.length; i++) {
|
||||
if (this.adaptiveFormats[i].bitrate === quality.bitrate) {
|
||||
fps = this.adaptiveFormats[i].fps
|
||||
fps = this.adaptiveFormats[i].fps ? this.adaptiveFormats[i].fps : 30
|
||||
break
|
||||
}
|
||||
}
|
||||
|
@ -1193,6 +1193,10 @@ export default Vue.extend({
|
|||
return format.bitrate === quality.bitrate
|
||||
})
|
||||
|
||||
if (typeof adaptiveFormat === 'undefined') {
|
||||
return
|
||||
}
|
||||
|
||||
this.activeAdaptiveFormats.push(adaptiveFormat)
|
||||
|
||||
fps = adaptiveFormat.fps ? adaptiveFormat.fps : 30
|
||||
|
|
Loading…
Reference in New Issue