LH-259-mediasoup-always-return-a-callback-response-to-clients #13

Merged
cristi merged 5 commits from LH-259-mediasoup-always-return-a-callback-response-to-clients into develop 2022-10-25 16:18:54 +00:00
Showing only changes of commit 9f8347bec5 - Show all commits

5
app.js
View File

@ -164,7 +164,10 @@ peers.on('connection', async socket => {
// rtpCapabilities is set for callback // rtpCapabilities is set for callback
console.log('[getRtpCapabilities] callId', callId); console.log('[getRtpCapabilities] callId', callId);
callbackResponse = videoCalls[callId].router.rtpCapabilities; callbackResponse = {
rtpCapabilities :videoCalls[callId].router.rtpCapabilities
};
callback(callbackResponse);
} else { } else {
console.log(`[createRoom] missing callId ${callId}`); console.log(`[createRoom] missing callId ${callId}`);
} }