LH-259-mediasoup-always-return-a-callback-response-to-clients #13
5
app.js
5
app.js
@ -164,7 +164,10 @@ peers.on('connection', async socket => {
|
||||
|
||||
// rtpCapabilities is set for callback
|
||||
console.log('[getRtpCapabilities] callId', callId);
|
||||
callbackResponse = videoCalls[callId].router.rtpCapabilities;
|
||||
callbackResponse = {
|
||||
rtpCapabilities :videoCalls[callId].router.rtpCapabilities
|
||||
};
|
||||
callback(callbackResponse);
|
||||
} else {
|
||||
console.log(`[createRoom] missing callId ${callId}`);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user