]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/assets/player/peertube-player-manager.ts
Translated using Weblate (Italian)
[github/Chocobozzz/PeerTube.git] / client / src / assets / player / peertube-player-manager.ts
index 3d72d46091a515f32200c1c17d8854ed09cd87a4..c1953043e354721fb53f843143ed7e94a23f1389 100644 (file)
@@ -339,10 +339,8 @@ export class PeertubePlayerManager {
         const resolution = Math.min(level.height || 0, level.width || 0)
 
         const file = p2pMediaLoaderOptions.videoFiles.find(f => f.resolution.id === resolution)
-        if (!file) {
-          console.error('Cannot find video file for level %d.', level.height)
-          return level.height
-        }
+        // We don't have files for live videos
+        if (!file) return level.height
 
         let label = file.resolution.label
         if (file.fps >= 50) label += file.fps