Fix auto quality with http fallback

This commit is contained in:
Chocobozzz 2018-04-05 16:22:08 +02:00
parent a8462c8e3a
commit 877b0528f8
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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)