LINXD-2209-black-screen-when-2-video-calls-are-answered-simultaneously #3

Merged
sergiu merged 31 commits from LINXD-2209-black-screen-when-2-video-calls-are-answered-simultaneously into master 2022-09-15 14:49:55 +00:00
Showing only changes of commit 2f6c25c171 - Show all commits

4
app.js
View File

@ -122,10 +122,10 @@ peers.on('connection', async socket => {
if (!videoCalls[callId]) {
console.log('create room');
console.log('[createRoom] callId', callId);
videoCalls[callId].router = await worker.createRouter({ mediaCodecs });
videoCalls[callId] = { router: await worker.createRouter({ mediaCodecs }) }
console.log(`[createRoom] Router ID: ${videoCalls[callId].router.id}`)
}
console.log('room exists');
console.log('room exists', videoCalls);
socketDetails[socket.id] = callId;
getRtpCapabilities(callId, callback);
})