LAPI-675: Comment code<DEBUG>
This commit is contained in:
parent
9b4e0186ac
commit
26345bd22b
40
app.js
40
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) => {
|
// router.observer.on("newtransport", (transport) => {
|
||||||
transport.observer.on("newproducer", (producer) => {
|
// transport.observer.on("newproducer", (producer) => {
|
||||||
|
|
||||||
console.log(
|
// console.log(
|
||||||
"new producer created [worker.pid:%d, router.id:%s, transport.id:%s, producer.id:%s]",
|
// "new producer created [worker.pid:%d, router.id:%s, transport.id:%s, producer.id:%s]",
|
||||||
worker.pid, router.id, transport.id, producer.id
|
// worker.pid, router.id, transport.id, producer.id
|
||||||
);
|
// );
|
||||||
|
|
||||||
if (!isInitiator(callId, socket.id)) {
|
// if (!isInitiator(callId, socket.id)) {
|
||||||
console.log('🟥 Emit to initiatorSocket');
|
// console.log('🟥 Emit to initiatorSocket');
|
||||||
initiatorSocket.emit('new-producer', {
|
// initiatorSocket.emit('new-producer', {
|
||||||
callId
|
// callId
|
||||||
});
|
// });
|
||||||
|
|
||||||
} else {
|
// } else {
|
||||||
console.log('🟥 Emit to receiverSocket');
|
// console.log('🟥 Emit to receiverSocket');
|
||||||
receiverSocket.emit('new-producer', {
|
// receiverSocket.emit('new-producer', {
|
||||||
callId
|
// callId
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
|
|
||||||
});
|
// });
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -96,9 +96,9 @@ setTimeout(() => {
|
|||||||
if (IS_PRODUCER && urlParams.get('testing') === 'true') { getLocalStream() }
|
if (IS_PRODUCER && urlParams.get('testing') === 'true') { getLocalStream() }
|
||||||
})
|
})
|
||||||
|
|
||||||
socket.on('new-producer', ({ callId }) => {
|
// socket.on('new-producer', ({ callId }) => {
|
||||||
console.log(`🟥 new-producer | callId: ${callId}`);
|
// console.log(`🟥 new-producer | callId: ${callId}`);
|
||||||
})
|
// })
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IS_PRODUCER === true) {
|
if (IS_PRODUCER === true) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user