diff --git a/app.js b/app.js index cb874d6..d5ccdec 100644 --- a/app.js +++ b/app.js @@ -299,31 +299,31 @@ peers.on('connection', async socket => { - const router = videoCalls[callId].router; + // const router = videoCalls[callId].router; - router.observer.on("newtransport", (transport) => { - transport.observer.on("newproducer", (producer) => { + // router.observer.on("newtransport", (transport) => { + // transport.observer.on("newproducer", (producer) => { - console.log( - "new producer created [worker.pid:%d, router.id:%s, transport.id:%s, producer.id:%s]", - worker.pid, router.id, transport.id, producer.id - ); + // console.log( + // "new producer created [worker.pid:%d, router.id:%s, transport.id:%s, producer.id:%s]", + // worker.pid, router.id, transport.id, producer.id + // ); - if (!isInitiator(callId, socket.id)) { - console.log('🟥 Emit to initiatorSocket'); - initiatorSocket.emit('new-producer', { - callId - }); + // if (!isInitiator(callId, socket.id)) { + // console.log('🟥 Emit to initiatorSocket'); + // initiatorSocket.emit('new-producer', { + // callId + // }); - } else { - console.log('🟥 Emit to receiverSocket'); - receiverSocket.emit('new-producer', { - callId - }); - } - }); + // } else { + // console.log('🟥 Emit to receiverSocket'); + // receiverSocket.emit('new-producer', { + // callId + // }); + // } + // }); - }); + // }); diff --git a/public/index.js b/public/index.js index 1a42ea7..e6bb006 100644 --- a/public/index.js +++ b/public/index.js @@ -96,9 +96,9 @@ setTimeout(() => { if (IS_PRODUCER && urlParams.get('testing') === 'true') { getLocalStream() } }) - socket.on('new-producer', ({ callId }) => { - console.log(`🟥 new-producer | callId: ${callId}`); - }) + // socket.on('new-producer', ({ callId }) => { + // console.log(`🟥 new-producer | callId: ${callId}`); + // }) } if (IS_PRODUCER === true) {