LH-276: Update producer close event handler

This commit is contained in:
Sergiu Toma 2023-02-20 23:34:08 +02:00
parent d91fcfd584
commit e53f4c353f

7
app.js
View File

@ -338,6 +338,13 @@ peers.on('connection', async (socket) => {
console.log('====================2 initiatorVideoProducer for this producer closed', callId);
})
videoCalls[callId].initiatorVideoProducer.on('producerclose', () => {
console.log('000000000000000000000000000 producerclose initiatorVideoProducer!!!!!!!!!!!');
});
videoCalls[callId].initiatorVideoProducer.observer.on('producerclose', () => {
console.log('000000000000000000000000000 producerclose initiatorVideoProducer!!!!!!!!!!!');
});
// videoCalls[callId].initiatorProducerTransport.observer.on("newproducer", (producer) =>
// {
// console.log(