From 503d59cb9316f90a2d107ad8d93b9b1570122b0b Mon Sep 17 00:00:00 2001 From: Benjamin Pracht Date: Wed, 1 Jan 2025 18:55:03 +0000 Subject: [PATCH] test --- template-default/src/Room.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/template-default/src/Room.tsx b/template-default/src/Room.tsx index 32b50369..caf23153 100644 --- a/template-default/src/Room.tsx +++ b/template-default/src/Room.tsx @@ -61,6 +61,8 @@ function CompositeTemplate({ layout: initialLayout }: CompositeTemplateProps) { onlySubscribed: true, }); + EgressHelper.setRoom(room); + useEffect(() => { // determines when to start recording // the algorithm used is: @@ -68,7 +70,6 @@ function CompositeTemplate({ layout: initialLayout }: CompositeTemplateProps) { // * if there are no video tracks published, start immediately // * if it's been more than 10s, record as long as there are tracks subscribed const startTime = Date.now(); - EgressHelper.setRoom(room); const interval = setInterval(async () => { let shouldStartRecording = false; let hasVideoTracks = false;