diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-10 11:16:05 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-05-10 11:16:05 +0200 |
commit | 34023e12534f22f28d0b5afc1db3fdf2fd1e7e60 (patch) | |
tree | 29b219412b79231ac7a62e482982bf1a9a7aada8 /server/lib/runners | |
parent | f9eee54f2a601b8db7ebb7c11d149b39170e6d68 (diff) | |
download | PeerTube-34023e12534f22f28d0b5afc1db3fdf2fd1e7e60.tar.gz PeerTube-34023e12534f22f28d0b5afc1db3fdf2fd1e7e60.tar.zst PeerTube-34023e12534f22f28d0b5afc1db3fdf2fd1e7e60.zip |
Fix S3 live sync
Ensure TS chunks referenced in M3U8 playlist are already uploaded on S3
Diffstat (limited to 'server/lib/runners')
-rw-r--r-- | server/lib/runners/job-handlers/live-rtmp-hls-transcoding-job-handler.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/lib/runners/job-handlers/live-rtmp-hls-transcoding-job-handler.ts b/server/lib/runners/job-handlers/live-rtmp-hls-transcoding-job-handler.ts index 48a70d891..c3b0a95cc 100644 --- a/server/lib/runners/job-handlers/live-rtmp-hls-transcoding-job-handler.ts +++ b/server/lib/runners/job-handlers/live-rtmp-hls-transcoding-job-handler.ts | |||
@@ -80,6 +80,7 @@ export class LiveRTMPHLSTranscodingJobHandler extends AbstractJobHandler<CreateO | |||
80 | const outputDirectory = privatePayload.outputDirectory | 80 | const outputDirectory = privatePayload.outputDirectory |
81 | const videoUUID = privatePayload.videoUUID | 81 | const videoUUID = privatePayload.videoUUID |
82 | 82 | ||
83 | // Always process the chunk first before moving m3u8 that references this chunk | ||
83 | if (updatePayload.type === 'add-chunk') { | 84 | if (updatePayload.type === 'add-chunk') { |
84 | await move( | 85 | await move( |
85 | updatePayload.videoChunkFile as string, | 86 | updatePayload.videoChunkFile as string, |