aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--client/src/assets/player/peertube-videojs-plugin.ts5
1 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 e268510fa..32cc4cd8f 100644
--- a/client/src/assets/player/peertube-videojs-plugin.ts
+++ b/client/src/assets/player/peertube-videojs-plugin.ts
@@ -365,8 +365,9 @@ class PeerTubePlugin extends Plugin {
365 365
366 if (!averageDownloadSpeed) averageDownloadSpeed = this.getAndSaveActualDownloadSpeed() 366 if (!averageDownloadSpeed) averageDownloadSpeed = this.getAndSaveActualDownloadSpeed()
367 367
368 // Filter videos we can play according to our bandwidth 368 // Filter videos we can play according to our screen resolution and bandwidth
369 const filteredFiles = this.videoFiles.filter(f => { 369 const filteredFiles = this.videoFiles.filter(f => f.resolution.id <= this.playerElement.width)
370 .filter(f => {
370 const fileBitrate = (f.size / this.videoDuration) 371 const fileBitrate = (f.size / this.videoDuration)
371 let threshold = fileBitrate 372 let threshold = fileBitrate
372 373