LH-276: Update producer close event handler

This commit is contained in:
Sergiu Toma 2023-02-21 00:28:08 +02:00
parent f206dfc5ae
commit 51cf3534a1
2 changed files with 4 additions and 0 deletions

View File

@ -20460,6 +20460,8 @@ setTimeout(() => {
socket.on('close-producer', ({ callId, kind }) => {
console.log(`🔴 close-producer | callId: ${callId} | kind: ${kind}`);
if (kind === 'video') consumerVideo.close()
else if (king === 'audio') consumerAudio.close()
})
}

View File

@ -102,6 +102,8 @@ setTimeout(() => {
socket.on('close-producer', ({ callId, kind }) => {
console.log(`🔴 close-producer | callId: ${callId} | kind: ${kind}`);
if (kind === 'video') consumerVideo.close()
else if (king === 'audio') consumerAudio.close()
})
}