This commit is contained in:
Sergiu Toma 2023-01-13 18:59:25 +02:00
parent 020be2f7b9
commit 256687f284

5
app.js
View File

@ -196,10 +196,11 @@ 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.id', videoCalls[callId].receiverSocket.id)
console.log('------------', videoCalls[callId].receiverSocket);
console.log('🟦 videoCalls[callId].receiverSocket.socket.id', videoCalls[callId].receiverSocket.socket.id)
} else {
videoCalls[callId].initiatorSocket = socket;
console.log('🟦 videoCalls[callId].initiatorSocket.id', videoCalls[callId].initiatorSocket.id)
console.log('🟦 videoCalls[callId].initiatorSocket.id', videoCalls[callId].initiatorSocket.socket.id)
}
socketDetails[socket.id] = callId;
// rtpCapabilities is set for callback