test
This commit is contained in:
parent
a647ea9a82
commit
57f994f95b
34
app.js
34
app.js
@ -301,25 +301,25 @@ peers.on('connection', async socket => {
|
|||||||
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');
|
||||||
// videoCalls[callId].initiatorSocket.emit('new-producer', {
|
videoCalls[callId].initiatorSocket.emit('new-producer', {
|
||||||
// callId
|
callId
|
||||||
// });
|
});
|
||||||
|
|
||||||
// } else {
|
} else {
|
||||||
// console.log('🟥 Emit to receiverSocket');
|
console.log('🟥 Emit to receiverSocket');
|
||||||
// videoCalls[callId].receiverSocket.emit('new-producer', {
|
videoCalls[callId].receiverSocket.emit('new-producer', {
|
||||||
// callId
|
callId
|
||||||
// });
|
});
|
||||||
// }
|
}
|
||||||
|
|
||||||
videoCalls[callId].initiatorSocket.emit('new-producer', {
|
// videoCalls[callId].initiatorSocket.emit('new-producer', {
|
||||||
callId
|
// callId
|
||||||
});
|
// });
|
||||||
videoCalls[callId].receiverSocket.emit('new-producer', {
|
// videoCalls[callId].receiverSocket.emit('new-producer', {
|
||||||
callId
|
// callId
|
||||||
});
|
// });
|
||||||
// socket.emit('new-producer', {
|
// socket.emit('new-producer', {
|
||||||
// callId
|
// callId
|
||||||
// });
|
// });
|
||||||
|
Loading…
Reference in New Issue
Block a user