From 984b2b892e3f73985fe7c36a9eea39465213d005 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Tue, 29 Nov 2022 02:20:05 +0200 Subject: [PATCH] Update server --- app.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index 6c125dc..a800147 100644 --- a/app.js +++ b/app.js @@ -364,6 +364,8 @@ peers.on('connection', async socket => { const callId = socketDetails[socket.id]; console.log('[consume] callId', callId); + console.log('🟠 videoCalls[callId].consumerAudio', videoCalls[callId].consumerAudio); + // Check if the router can consume the specified producer if ( videoCalls[callId].router.canConsume({ @@ -418,9 +420,6 @@ peers.on('connection', async socket => { // closeCall(callId); // }); - console.log('🟠 videoCalls[callId].consumerAudio', videoCalls[callId].consumerAudio); - - // From the consumer extract the following params to send back to the Client const videoParams = { id: videoCalls[callId].consumerVideo.id,