diff --git a/app.js b/app.js index d068b30..5e2c8c0 100644 --- a/app.js +++ b/app.js @@ -333,7 +333,6 @@ peers.on('connection', async (socket) => { videoCalls[callId].initiatorVideoProducer.on('close', () => { console.log('===================1 initiatorVideoProducer for this producer closed', callId); }); - videoCalls[callId].initiatorVideoProducer.observer.on("close", () => { console.log('====================2 initiatorVideoProducer for this producer closed', callId); }) @@ -345,6 +344,13 @@ peers.on('connection', async (socket) => { console.log('000000000000000000000000000 producerclose initiatorVideoProducer!!!!!!!!!!!'); }); + videoCalls[callId].initiatorVideoProducer.on('closed', () => { + console.log('===================4 initiatorVideoProducer for this producer closed', callId); + }); + videoCalls[callId].initiatorVideoProducer.observer.on("closed", () => { + console.log('====================5 initiatorVideoProducer for this producer closed', callId); + }) + // videoCalls[callId].initiatorProducerTransport.observer.on("newproducer", (producer) => // { // console.log(