LH-276: Update producer close event handler

This commit is contained in:
Sergiu Toma 2023-02-21 01:04:18 +02:00
parent 7f732785b9
commit 1060293980
1 changed files with 0 additions and 2 deletions

2
app.js
View File

@ -494,11 +494,9 @@ peers.on('connection', async (socket) => {
const callId = socketDetails[socket.id];
console.log(`[consumer-resume] callId: ${callId}`);
if (isInitiator(callId, socket.id)) {
console.log('1videoCalls[callId]', videoCalls[callId]);
videoCalls[callId]?.initiatorConsumerVideo?.resume();
videoCalls[callId]?.initiatorConsumerAudio?.resume();
} else {
console.log('2 videoCalls[callId]', videoCalls[callId]);
videoCalls[callId]?.receiverConsumerVideo?.resume();
videoCalls[callId]?.receiverConsumerAudio?.resume();
}