LH-276: Update client js bundle

This commit is contained in:
Sergiu Toma 2023-02-21 00:32:23 +02:00
parent 51cf3534a1
commit 4b9987efe8
2 changed files with 8 additions and 2 deletions

View File

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

View File

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