aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-11-06 10:57:40 +0100
committerChocobozzz <chocobozzz@cpy.re>2020-11-09 15:33:04 +0100
commit053aed43fb255b4ae4324a845534f2f562c3b6cc (patch)
tree04cae6af371a1ee869051c67be28acea5581d16d /client/src/assets/player
parent3bc68dfd6183078fb56b53e24e74f889c85c4ae0 (diff)
downloadPeerTube-053aed43fb255b4ae4324a845534f2f562c3b6cc.tar.gz
PeerTube-053aed43fb255b4ae4324a845534f2f562c3b6cc.tar.zst
PeerTube-053aed43fb255b4ae4324a845534f2f562c3b6cc.zip
Regenerate miniature on live save
Diffstat (limited to 'client/src/assets/player')
-rw-r--r--client/src/assets/player/peertube-player-manager.ts6
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