aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/runners
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-22 13:44:22 +0200
committerChocobozzz <me@florianbigard.com>2023-05-22 13:54:46 +0200
commit17ecdf61ce1d374cc8ba17601b93c9bda08112b2 (patch)
treed3405d11636f661815c3ad09821944a5ae26ebfa /server/lib/runners
parentf3bc1b541619673f14db7de220b9c520a4f35ca8 (diff)
downloadPeerTube-17ecdf61ce1d374cc8ba17601b93c9bda08112b2.tar.gz
PeerTube-17ecdf61ce1d374cc8ba17601b93c9bda08112b2.tar.zst
PeerTube-17ecdf61ce1d374cc8ba17601b93c9bda08112b2.zip
Force stop remote live transcoding
Diffstat (limited to 'server/lib/runners')
-rw-r--r--server/lib/runners/job-handlers/live-rtmp-hls-transcoding-job-handler.ts4
1 files changed, 3 insertions, 1 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 87b6f0702..6b2894f8c 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
@@ -20,6 +20,7 @@ type CreateOptions = {
20 video: MVideo 20 video: MVideo
21 playlist: MStreamingPlaylist 21 playlist: MStreamingPlaylist
22 22
23 sessionId: string
23 rtmpUrl: string 24 rtmpUrl: string
24 25
25 toTranscode: { 26 toTranscode: {
@@ -37,7 +38,7 @@ type CreateOptions = {
37export class LiveRTMPHLSTranscodingJobHandler extends AbstractJobHandler<CreateOptions, LiveRTMPHLSTranscodingUpdatePayload, LiveRTMPHLSTranscodingSuccess> { 38export class LiveRTMPHLSTranscodingJobHandler extends AbstractJobHandler<CreateOptions, LiveRTMPHLSTranscodingUpdatePayload, LiveRTMPHLSTranscodingSuccess> {
38 39
39 async create (options: CreateOptions) { 40 async create (options: CreateOptions) {
40 const { video, rtmpUrl, toTranscode, playlist, segmentDuration, segmentListSize, outputDirectory } = options 41 const { video, rtmpUrl, toTranscode, playlist, segmentDuration, segmentListSize, outputDirectory, sessionId } = options
41 42
42 const jobUUID = buildUUID() 43 const jobUUID = buildUUID()
43 const payload: RunnerJobLiveRTMPHLSTranscodingPayload = { 44 const payload: RunnerJobLiveRTMPHLSTranscodingPayload = {
@@ -54,6 +55,7 @@ export class LiveRTMPHLSTranscodingJobHandler extends AbstractJobHandler<CreateO
54 const privatePayload: RunnerJobLiveRTMPHLSTranscodingPrivatePayload = { 55 const privatePayload: RunnerJobLiveRTMPHLSTranscodingPrivatePayload = {
55 videoUUID: video.uuid, 56 videoUUID: video.uuid,
56 masterPlaylistName: playlist.playlistFilename, 57 masterPlaylistName: playlist.playlistFilename,
58 sessionId,
57 outputDirectory 59 outputDirectory
58 } 60 }
59 61