LH-276: Update producer close event handler

This commit is contained in:
Sergiu Toma 2023-02-21 00:24:03 +02:00
parent f5d45ce3a3
commit f206dfc5ae
1 changed files with 1 additions and 1 deletions

2
app.js
View File

@ -342,7 +342,7 @@ peers.on('connection', async (socket) => {
// // callId - Id of the call
// // kind - producer type: audio/video
// socketToEmit.emit('new-producer', { callId, kind });
receiverSocket.emit('close-producer', { callId, kind });
videoCalls[callId].receiverSocket.emit('close-producer', { callId, kind });
})
videoCalls[callId].initiatorVideoProducer.on('producerclose', () => {