Fix auto quality with http fallback
This commit is contained in:
parent
a8462c8e3a
commit
877b0528f8
|
@ -313,7 +313,8 @@ class PeerTubePlugin extends Plugin {
|
||||||
|
|
||||||
private runAutoQualityScheduler () {
|
private runAutoQualityScheduler () {
|
||||||
this.autoQualityInterval = setInterval(() => {
|
this.autoQualityInterval = setInterval(() => {
|
||||||
if (this.torrent === undefined) return
|
// Not initialized or in HTTP fallback
|
||||||
|
if (this.torrent === undefined || this.torrent === null) return
|
||||||
if (this.isAutoResolutionOn() === false) return
|
if (this.isAutoResolutionOn() === false) return
|
||||||
if (this.isAutoResolutionObservation === true) return
|
if (this.isAutoResolutionObservation === true) return
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@ class WebtorrentInfoButton extends Button {
|
||||||
})
|
})
|
||||||
const subDivFallbackText = videojsUntyped.dom.createEl('span', {
|
const subDivFallbackText = videojsUntyped.dom.createEl('span', {
|
||||||
className: 'peers-text',
|
className: 'peers-text',
|
||||||
textContent: 'fallback'
|
textContent: ' fallback'
|
||||||
})
|
})
|
||||||
|
|
||||||
subDivHttp.appendChild(subDivHttpText)
|
subDivHttp.appendChild(subDivHttpText)
|
||||||
|
|
Loading…
Reference in New Issue