From b1dbc401a5a6af675787da40cecde6a588e0dd2c Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Fri, 13 Jan 2023 18:48:57 +0200 Subject: [PATCH] test --- app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index d5ccdec..01b3380 100644 --- a/app.js +++ b/app.js @@ -299,7 +299,7 @@ peers.on('connection', async socket => { - // const router = videoCalls[callId].router; + // const router = videoCalls[callId].router;receiverSocket // router.observer.on("newtransport", (transport) => { // transport.observer.on("newproducer", (producer) => { @@ -644,6 +644,8 @@ const consumeAudio = async (callId, socketId, rtpCapabilities) => { } const isInitiator = (callId, socketId) => { + console.log('videoCalls[callId].initiatorSocket.id', videoCalls[callId].initiatorSocket.id); + console.log('socketId', socketId); return (videoCalls[callId].initiatorSocket.id === socketId); }