From 2fbb355fea7730f5904b14b0f98345e90bce5c98 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Mon, 19 Dec 2022 11:19:51 +0200 Subject: [PATCH] Update --- app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index d705b63..e4e130c 100644 --- a/app.js +++ b/app.js @@ -428,8 +428,9 @@ peers.on('connection', async socket => { callback({ videoParams, audioParams }); } else if (!canConsumeVideo && canConsumeAudio) { const audioParams = await consumeAudio(callId, socket.id, rtpCapabilities) - console.log('-----------', { videoParams: null, audioParams }); - callback({ videoParams: null, audioParams }); + const data = { videoParams: null, audioParams }; + console.log('-----------======= data', data); + callback(data); } else { console.log(`[consume] Can't consume | callId ${callId}`); callback(null);