From 359c7c784ef402a8bfc772774344147cc7d6f99d Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Tue, 29 Nov 2022 02:40:25 +0200 Subject: [PATCH] Update server --- app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 3e84214..31d835b 100644 --- a/app.js +++ b/app.js @@ -364,8 +364,6 @@ peers.on('connection', async socket => { const callId = socketDetails[socket.id]; console.log('[consume] callId', callId); - console.log('🟠 videoCalls[callId].producerAudio', videoCalls[callId].producerAudio); - const canConsumeVideo = videoCalls[callId].producerVideo && videoCalls[callId].router.canConsume({ producerId: videoCalls[callId].producerVideo.id, rtpCapabilities @@ -376,6 +374,9 @@ peers.on('connection', async socket => { rtpCapabilities }) + console.log('[consume] canConsumeVideo', canConsumeVideo); + console.log('[consume] canConsumeAudio', canConsumeAudio); + if (canConsumeVideo && !canConsumeAudio) { const videoParams = consumeVideo(callId, rtpCapabilities) callback({ videoParams, audioParams: null });