diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/src/assets/player/peertube-videojs-plugin.ts | 3 | ||||
-rw-r--r-- | client/src/assets/player/webtorrent-info-button.ts | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/client/src/assets/player/peertube-videojs-plugin.ts b/client/src/assets/player/peertube-videojs-plugin.ts index 91a3993a3..84a5e7f13 100644 --- a/client/src/assets/player/peertube-videojs-plugin.ts +++ b/client/src/assets/player/peertube-videojs-plugin.ts | |||
@@ -313,7 +313,8 @@ class PeerTubePlugin extends Plugin { | |||
313 | 313 | ||
314 | private runAutoQualityScheduler () { | 314 | private runAutoQualityScheduler () { |
315 | this.autoQualityInterval = setInterval(() => { | 315 | this.autoQualityInterval = setInterval(() => { |
316 | if (this.torrent === undefined) return | 316 | // Not initialized or in HTTP fallback |
317 | if (this.torrent === undefined || this.torrent === null) return | ||
317 | if (this.isAutoResolutionOn() === false) return | 318 | if (this.isAutoResolutionOn() === false) return |
318 | if (this.isAutoResolutionObservation === true) return | 319 | if (this.isAutoResolutionObservation === true) return |
319 | 320 | ||
diff --git a/client/src/assets/player/webtorrent-info-button.ts b/client/src/assets/player/webtorrent-info-button.ts index 8a79e0e50..baeb22b64 100644 --- a/client/src/assets/player/webtorrent-info-button.ts +++ b/client/src/assets/player/webtorrent-info-button.ts | |||
@@ -62,7 +62,7 @@ class WebtorrentInfoButton extends Button { | |||
62 | }) | 62 | }) |
63 | const subDivFallbackText = videojsUntyped.dom.createEl('span', { | 63 | const subDivFallbackText = videojsUntyped.dom.createEl('span', { |
64 | className: 'peers-text', | 64 | className: 'peers-text', |
65 | textContent: 'fallback' | 65 | textContent: ' fallback' |
66 | }) | 66 | }) |
67 | 67 | ||
68 | subDivHttp.appendChild(subDivHttpText) | 68 | subDivHttp.appendChild(subDivHttpText) |