Update server

This commit is contained in:
Sergiu Toma 2022-11-29 02:21:29 +02:00
parent 984b2b892e
commit 38b95d5246

3
app.js
View File

@ -364,7 +364,7 @@ peers.on('connection', async socket => {
const callId = socketDetails[socket.id]; const callId = socketDetails[socket.id];
console.log('[consume] callId', callId); console.log('[consume] callId', callId);
console.log('🟠 videoCalls[callId].consumerAudio', videoCalls[callId].consumerAudio); console.log('🟠 videoCalls[callId].producerAudio', videoCalls[callId].producerAudio);
// Check if the router can consume the specified producer // Check if the router can consume the specified producer
if ( if (
@ -419,6 +419,7 @@ peers.on('connection', async socket => {
// console.log('producer of consumer closed', callId); // console.log('producer of consumer closed', callId);
// closeCall(callId); // closeCall(callId);
// }); // });
console.log('🟠 videoCalls[callId].consumerAudio', videoCalls[callId].consumerAudio);
// From the consumer extract the following params to send back to the Client // From the consumer extract the following params to send back to the Client
const videoParams = { const videoParams = {