LINXD-2209: Correctly set router to videoCalls

This commit is contained in:
Sergiu Toma 2022-09-15 09:35:35 +03:00
parent 7198dc91b1
commit 434c8f744c

2
app.js
View File

@ -101,7 +101,7 @@ const mediaCodecs = [
const getRtpCapabilities = (callId, callback) => { const getRtpCapabilities = (callId, callback) => {
console.log('[getRtpCapabilities] callId', callId); console.log('[getRtpCapabilities] callId', callId);
const rtpCapabilities = videoCalls[callId].router.rtpCapabilities; const rtpCapabilities = videoCalls[callId] = { router: rtpCapabilities };
callback({ rtpCapabilities }); callback({ rtpCapabilities });
} }