diff --git a/public/bundle.js b/public/bundle.js index 04793bd..82d37b0 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -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() }) } diff --git a/public/index.js b/public/index.js index d2a5855..7bbe1fb 100644 --- a/public/index.js +++ b/public/index.js @@ -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() }) }