Remove callId from transportClose(from producer)
This commit is contained in:
parent
a2223529da
commit
6d80943907
2
app.js
2
app.js
@ -156,7 +156,7 @@ peers.on('connection', async socket => {
|
||||
|
||||
console.log(`[transport-produce] Producer ID: ${producer.id} | kind: ${producer.kind}`)
|
||||
|
||||
producer.on('transportclose', ({ callId }) => {
|
||||
producer.on('transportclose', () => {
|
||||
console.log('transport for this producer closed')
|
||||
closeRoom();
|
||||
})
|
||||
|
@ -20721,10 +20721,8 @@ if (IS_PRODUCER === true) {
|
||||
|
||||
if (parsedData.type === 'notify-end') {
|
||||
console.log('[VIDEO] notify-end | IS_PRODUCER', IS_PRODUCER, 'callId', callId);
|
||||
// socket.emit('transportclose')
|
||||
socket.emit('transportclose')
|
||||
resetCallSettings()
|
||||
// socket.destroy()
|
||||
}
|
||||
})
|
||||
})
|
||||
|
@ -62,10 +62,8 @@ if (IS_PRODUCER === true) {
|
||||
|
||||
if (parsedData.type === 'notify-end') {
|
||||
console.log('[VIDEO] notify-end | IS_PRODUCER', IS_PRODUCER, 'callId', callId);
|
||||
// socket.emit('transportclose')
|
||||
socket.emit('transportclose')
|
||||
resetCallSettings()
|
||||
// socket.destroy()
|
||||
}
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user