From 7f732785b979c01e87c8d91c71a46cd9bb417b4f Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Tue, 21 Feb 2023 01:02:24 +0200 Subject: [PATCH] LH-276: Update producer close event handler --- app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.js b/app.js index 212bf1e..2313362 100644 --- a/app.js +++ b/app.js @@ -494,9 +494,11 @@ peers.on('connection', async (socket) => { const callId = socketDetails[socket.id]; console.log(`[consumer-resume] callId: ${callId}`); if (isInitiator(callId, socket.id)) { + console.log('1videoCalls[callId]', videoCalls[callId]); videoCalls[callId]?.initiatorConsumerVideo?.resume(); videoCalls[callId]?.initiatorConsumerAudio?.resume(); } else { + console.log('2 videoCalls[callId]', videoCalls[callId]); videoCalls[callId]?.receiverConsumerVideo?.resume(); videoCalls[callId]?.receiverConsumerAudio?.resume(); }