From 48fdd42efa7d3d1052eeee4a9d18dc887a03cc32 Mon Sep 17 00:00:00 2001 From: Thomas Moore Date: Mon, 9 Oct 2023 19:39:55 +0100 Subject: [PATCH] Remove the enforced timelimit on streams --- .changeset/polite-countries-explain.md | 5 +++++ apps/backend/src/stream/workers/restream.ts | 14 +++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 .changeset/polite-countries-explain.md diff --git a/.changeset/polite-countries-explain.md b/.changeset/polite-countries-explain.md new file mode 100644 index 0000000..f335313 --- /dev/null +++ b/.changeset/polite-countries-explain.md @@ -0,0 +1,5 @@ +--- +'@haishin/backend': patch +--- + +Remove the enforced timelimit on streams diff --git a/apps/backend/src/stream/workers/restream.ts b/apps/backend/src/stream/workers/restream.ts index 3300cfd..8d0b5c4 100644 --- a/apps/backend/src/stream/workers/restream.ts +++ b/apps/backend/src/stream/workers/restream.ts @@ -65,13 +65,13 @@ async function restream(streamInfo: StreamInfo): Promise { }) // For testing stop streamlink after 1 minutes - setTimeout( - () => { - console.log(`Killing streamlink process for ${streamInfo.originalUrl}...`) - streamLinkProcess.kill() - }, - 1000 * 60 * 1 - ) + // setTimeout( + // () => { + // console.log(`Killing streamlink process for ${streamInfo.originalUrl}...`) + // streamLinkProcess.kill() + // }, + // 1000 * 60 * 1 + // ) // Use ffmpeg to restream the stream const ffmpegArgs = [