LINXD-2209-black-screen-when-2-video-calls-are-answered-simultaneously #3
3
app.js
3
app.js
@ -114,7 +114,6 @@ const mediaCodecs = [
|
||||
|
||||
const getRtpCapabilities = (callId, callback) => {
|
||||
const rtpCapabilities = router[callId].rtpCapabilities
|
||||
console.log('[getRtpCapabilities]', callId, callback, rtpCapabilities);
|
||||
callback({ rtpCapabilities })
|
||||
}
|
||||
|
||||
@ -122,10 +121,8 @@ const mediaCodecs = [
|
||||
if (queue.length > 0) {
|
||||
const { callId, callback } = queue.shift();
|
||||
if (router[callId] === undefined) {
|
||||
console.log('🟢 callId', callId, '| callback', callback)
|
||||
router[callId] = await worker.createRouter({ mediaCodecs })
|
||||
console.log(`[createRoom] Router ID: ${router[callId].id}`)
|
||||
console.log('🟡 router', router);
|
||||
}
|
||||
getRtpCapabilities(callId, callback)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user