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) => {
|
||||
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
|
||||
// });
|
||||
// }
|
||||
// });
|
||||
|
||||
});
|
||||
// });
|
||||
|
||||
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user