Moved callId in consumer-resume

This commit is contained in:
Sergiu Toma 2023-01-12 15:09:21 +02:00
parent c037240f47
commit 1b72941a32

2
app.js
View File

@ -446,8 +446,8 @@ peers.on('connection', async socket => {
*/ */
socket.on('consumer-resume',() => { socket.on('consumer-resume',() => {
try { try {
console.log(`[consumer-resume] callId ${callId}`)
const callId = socketDetails[socket.id]; const callId = socketDetails[socket.id];
console.log(`[consumer-resume] callId ${callId}`)
if (isInitiator(callId, socket.id)) { if (isInitiator(callId, socket.id)) {
videoCalls[callId]?.initiatorConsumerVideo?.resume(); videoCalls[callId]?.initiatorConsumerVideo?.resume();
videoCalls[callId]?.initiatorConsumerAudio?.resume(); videoCalls[callId]?.initiatorConsumerAudio?.resume();