LH-276: Update producer close event handler
This commit is contained in:
parent
f5d45ce3a3
commit
f206dfc5ae
2
app.js
2
app.js
@ -342,7 +342,7 @@ peers.on('connection', async (socket) => {
|
|||||||
// // callId - Id of the call
|
// // callId - Id of the call
|
||||||
// // kind - producer type: audio/video
|
// // kind - producer type: audio/video
|
||||||
// socketToEmit.emit('new-producer', { callId, kind });
|
// 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', () => {
|
videoCalls[callId].initiatorVideoProducer.on('producerclose', () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user