ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix auto quality with http fallback
Chocobozzz877b0528f80f
diff --git a/client/src/assets/player/peertube-videojs-plugin.ts b/client/src/assets/player/peertube-videojs-plugin.tsindex 91a3993a34..84a5e7f133 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 {private runAutoQualityScheduler () {this.autoQualityInterval = setInterval(() => {- if (this.torrent === undefined) return+ // Not initialized or in HTTP fallback+ if (this.torrent === undefined || this.torrent === null) returnif (this.isAutoResolutionOn() === false) returnif (this.isAutoResolutionObservation === true) returndiff --git a/client/src/assets/player/webtorrent-info-button.ts b/client/src/assets/player/webtorrent-info-button.tsindex 8a79e0e500..baeb22b645 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 {})const subDivFallbackText = videojsUntyped.dom.createEl('span', {className: 'peers-text',- textContent: 'fallback'+ textContent: ' fallback'})subDivHttp.appendChild(subDivHttpText)