LH-253: Added callId for transportclose and producerclose events #12

Merged
sergiu merged 2 commits from LH-253-mediasoup-handle-callid-undefined into master 2022-10-18 07:53:33 +00:00
Showing only changes of commit 03a11126c4 - Show all commits

2
app.js
View File

@ -109,7 +109,7 @@ const mediaCodecs = [
const closeCall = (callId) => {
try {
if (videoCalls[callId]) {
if (callId && videoCalls[callId]) {
videoCalls[callId].producer?.close();
videoCalls[callId].consumer?.close();
videoCalls[callId]?.consumerTransport?.close();