diff options
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/assets/player/peertube-player-manager.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/client/src/assets/player/peertube-player-manager.ts b/client/src/assets/player/peertube-player-manager.ts index 3d72d4609..c1953043e 100644 --- a/client/src/assets/player/peertube-player-manager.ts +++ b/client/src/assets/player/peertube-player-manager.ts | |||
@@ -339,10 +339,8 @@ export class PeertubePlayerManager { | |||
339 | const resolution = Math.min(level.height || 0, level.width || 0) | 339 | const resolution = Math.min(level.height || 0, level.width || 0) |
340 | 340 | ||
341 | const file = p2pMediaLoaderOptions.videoFiles.find(f => f.resolution.id === resolution) | 341 | const file = p2pMediaLoaderOptions.videoFiles.find(f => f.resolution.id === resolution) |
342 | if (!file) { | 342 | // We don't have files for live videos |
343 | console.error('Cannot find video file for level %d.', level.height) | 343 | if (!file) return level.height |
344 | return level.height | ||
345 | } | ||
346 | 344 | ||
347 | let label = file.resolution.label | 345 | let label = file.resolution.label |
348 | if (file.fps >= 50) label += file.fps | 346 | if (file.fps >= 50) label += file.fps |