From 29a4cd7227766823dfc06762add1236b7a032bb7 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Wed, 22 Feb 2023 18:40:39 +0200 Subject: [PATCH] LH-276: Format code --- app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 583c79f..5f3a652 100644 --- a/app.js +++ b/app.js @@ -501,6 +501,7 @@ const consumeAudio = async ({ callId, socketId, rtpCapabilities }) => { try { // Handlers for consumer transport https://mediasoup.org/documentation/v3/mediasoup/api/#consumer-on-transportclose if (isInitiator(callId, socketId)) { + console.log('1videoCalls[callId].receiverAudioProducer', videoCalls[callId].receiverAudioProducer); const producerId = videoCalls[callId].receiverAudioProducer.id; if (!canConsume({ callId, producerId, rtpCapabilities })) return null; @@ -518,6 +519,7 @@ const consumeAudio = async ({ callId, socketId, rtpCapabilities }) => { console.log('audio returnData', returnData); return returnData; } else { + console.log('2videoCalls[callId].initiatorAudioProducer', videoCalls[callId].initiatorAudioProducer); const producerId = videoCalls[callId].initiatorAudioProducer.id; if (!canConsume({ callId, producerId, rtpCapabilities })) return null; @@ -536,7 +538,7 @@ const consumeAudio = async ({ callId, socketId, rtpCapabilities }) => { return returnData; } } catch (error) { - console.error(`[consumeAudio] | ERROR | error: ${error.message}`) + console.error(`[consumeAudio] | ERROR | error: ${error}`) } };