From 1b72941a3240099fe9b004f9b5969921add881fa Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Thu, 12 Jan 2023 15:09:21 +0200 Subject: [PATCH] Moved callId in consumer-resume --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index f5e4264..82b7682 100644 --- a/app.js +++ b/app.js @@ -446,8 +446,8 @@ peers.on('connection', async socket => { */ socket.on('consumer-resume',() => { try { - console.log(`[consumer-resume] callId ${callId}`) const callId = socketDetails[socket.id]; + console.log(`[consumer-resume] callId ${callId}`) if (isInitiator(callId, socket.id)) { videoCalls[callId]?.initiatorConsumerVideo?.resume(); videoCalls[callId]?.initiatorConsumerAudio?.resume();