aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/job-queue/handlers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-11-06 09:09:36 +0100
committerChocobozzz <chocobozzz@cpy.re>2020-11-09 15:33:04 +0100
commit3bc68dfd6183078fb56b53e24e74f889c85c4ae0 (patch)
treeeac38175bf815227f39bf0327c7399b85b05ad08 /server/lib/job-queue/handlers
parentf8c00564e7e66c7c9d65ea044a4c1485df0e4c7c (diff)
downloadPeerTube-3bc68dfd6183078fb56b53e24e74f889c85c4ae0.tar.gz
PeerTube-3bc68dfd6183078fb56b53e24e74f889c85c4ae0.tar.zst
PeerTube-3bc68dfd6183078fb56b53e24e74f889c85c4ae0.zip
Fix audio sync after saving replay
hls.js seems to not correctly handle audio gaps with fragmented mp4 (but can with a ts playlist)
Diffstat (limited to 'server/lib/job-queue/handlers')
-rw-r--r--server/lib/job-queue/handlers/video-live-ending.ts4
1 files changed, 0 insertions, 4 deletions
diff --git a/server/lib/job-queue/handlers/video-live-ending.ts b/server/lib/job-queue/handlers/video-live-ending.ts
index 2b900998a..3892260c4 100644
--- a/server/lib/job-queue/handlers/video-live-ending.ts
+++ b/server/lib/job-queue/handlers/video-live-ending.ts
@@ -70,10 +70,6 @@ async function saveLive (video: MVideo, live: MVideoLive) {
70 const segmentFiles = files.filter(f => f.startsWith(shouldStartWith) && f.endsWith('.ts')) 70 const segmentFiles = files.filter(f => f.startsWith(shouldStartWith) && f.endsWith('.ts'))
71 await hlsPlaylistToFragmentedMP4(hlsDirectory, segmentFiles, mp4TmpPath) 71 await hlsPlaylistToFragmentedMP4(hlsDirectory, segmentFiles, mp4TmpPath)
72 72
73 for (const file of segmentFiles) {
74 await remove(join(hlsDirectory, file))
75 }
76
77 if (!duration) { 73 if (!duration) {
78 duration = await getDurationFromVideoFile(mp4TmpPath) 74 duration = await getDurationFromVideoFile(mp4TmpPath)
79 } 75 }