diff options
Diffstat (limited to 'client/src/assets/player/peertube-videojs-plugin.ts')
-rw-r--r-- | client/src/assets/player/peertube-videojs-plugin.ts | 3 |
1 files changed, 2 insertions, 1 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 | ||