This commit is contained in:
Sergiu Toma 2023-01-13 18:51:47 +02:00
parent b1dbc401a5
commit ed7feaecd5

2
app.js
View File

@ -196,8 +196,10 @@ peers.on('connection', async socket => {
videoCalls[callId] = { router: await worker.createRouter({ mediaCodecs }) };
console.log(`[createRoom] Router ID: ${videoCalls[callId].router.id}`);
videoCalls[callId].receiverSocket = socket;
console.log('🟦 videoCalls[callId].initiatorSocket', videoCalls[callId].receiverSocket)
} else {
videoCalls[callId].initiatorSocket = socket;
console.log('🟦 videoCalls[callId].initiatorSocket', videoCalls[callId].initiatorSocket)
}
socketDetails[socket.id] = callId;
// rtpCapabilities is set for callback