private runAutoQualityScheduler () {
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.isAutoResolutionObservation === true) return
})
const subDivFallbackText = videojsUntyped.dom.createEl('span', {
className: 'peers-text',
- textContent: 'fallback'
+ textContent: ' fallback'
})
subDivHttp.appendChild(subDivHttpText)