LINXD-2209-black-screen-when-2-video-calls-are-answered-simultaneously #3
2
app.js
2
app.js
@ -118,7 +118,7 @@ peers.on('connection', async socket => {
|
||||
})
|
||||
|
||||
socket.on('createRoom', async ({ callId }, callback) => {
|
||||
if (videoCalls[callId].router === undefined) {
|
||||
if (videoCalls[callId]?.router === undefined) {
|
||||
console.log('[createRoom] callId', callId);
|
||||
videoCalls[callId].router = await worker.createRouter({ mediaCodecs });
|
||||
console.log(`[createRoom] Router ID: ${videoCalls[callId].router.id}`)
|
||||
|
Loading…
Reference in New Issue
Block a user