LH-276: Update producer close event handler
This commit is contained in:
parent
f206dfc5ae
commit
51cf3534a1
@ -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()
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -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()
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user