LAPI-675: Comment code<DEBUG>

This commit is contained in:
Sergiu Toma 2023-01-13 18:42:34 +02:00
parent 9b4e0186ac
commit 26345bd22b
2 changed files with 23 additions and 23 deletions

40
app.js
View File

@ -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
// });
// }
// });
});
// });

View File

@ -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) {