From 053aed43fb255b4ae4324a845534f2f562c3b6cc Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 6 Nov 2020 10:57:40 +0100 Subject: Regenerate miniature on live save --- client/src/assets/player/peertube-player-manager.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'client') 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 { 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 -- cgit v1.2.3