Remove callback with producer id from transport-produce
This commit is contained in:
parent
0af7ddd786
commit
523945271e
4
app.js
4
app.js
@ -196,6 +196,8 @@ peers.on('connection', async socket => {
|
|||||||
// https://mediasoup.org/documentation/v3/mediasoup/api/#router-close
|
// https://mediasoup.org/documentation/v3/mediasoup/api/#router-close
|
||||||
router[callId].close()
|
router[callId].close()
|
||||||
delete router[callId]
|
delete router[callId]
|
||||||
|
producer.close()
|
||||||
|
consumer.close()
|
||||||
})
|
})
|
||||||
|
|
||||||
consumer.on('producerclose', () => {
|
consumer.on('producerclose', () => {
|
||||||
@ -204,6 +206,8 @@ peers.on('connection', async socket => {
|
|||||||
// https://mediasoup.org/documentation/v3/mediasoup/api/#router-close
|
// https://mediasoup.org/documentation/v3/mediasoup/api/#router-close
|
||||||
router[callId].close()
|
router[callId].close()
|
||||||
delete router[callId]
|
delete router[callId]
|
||||||
|
producer.close()
|
||||||
|
consumer.close()
|
||||||
})
|
})
|
||||||
|
|
||||||
// from the consumer extract the following params
|
// from the consumer extract the following params
|
||||||
|
Loading…
Reference in New Issue
Block a user