From 523945271e1d0aea5f85f467f2bc739d17b89258 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Wed, 31 Aug 2022 17:06:54 +0300 Subject: [PATCH] Remove callback with producer id from transport-produce --- app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app.js b/app.js index 03e8ebb..860dae3 100644 --- a/app.js +++ b/app.js @@ -196,6 +196,8 @@ peers.on('connection', async socket => { // https://mediasoup.org/documentation/v3/mediasoup/api/#router-close router[callId].close() delete router[callId] + producer.close() + consumer.close() }) consumer.on('producerclose', () => { @@ -204,6 +206,8 @@ peers.on('connection', async socket => { // https://mediasoup.org/documentation/v3/mediasoup/api/#router-close router[callId].close() delete router[callId] + producer.close() + consumer.close() }) // from the consumer extract the following params