Remove callId from transportClose(from producer)

This commit is contained in:
Sergiu Toma 2022-08-06 10:15:51 +03:00
parent a2223529da
commit 6d80943907
3 changed files with 1 additions and 5 deletions

2
app.js
View File

@ -156,7 +156,7 @@ peers.on('connection', async socket => {
console.log(`[transport-produce] Producer ID: ${producer.id} | kind: ${producer.kind}`) 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') console.log('transport for this producer closed')
closeRoom(); closeRoom();
}) })

View File

@ -20721,10 +20721,8 @@ if (IS_PRODUCER === true) {
if (parsedData.type === 'notify-end') { if (parsedData.type === 'notify-end') {
console.log('[VIDEO] notify-end | IS_PRODUCER', IS_PRODUCER, 'callId', callId); console.log('[VIDEO] notify-end | IS_PRODUCER', IS_PRODUCER, 'callId', callId);
// socket.emit('transportclose')
socket.emit('transportclose') socket.emit('transportclose')
resetCallSettings() resetCallSettings()
// socket.destroy()
} }
}) })
}) })

View File

@ -62,10 +62,8 @@ if (IS_PRODUCER === true) {
if (parsedData.type === 'notify-end') { if (parsedData.type === 'notify-end') {
console.log('[VIDEO] notify-end | IS_PRODUCER', IS_PRODUCER, 'callId', callId); console.log('[VIDEO] notify-end | IS_PRODUCER', IS_PRODUCER, 'callId', callId);
// socket.emit('transportclose')
socket.emit('transportclose') socket.emit('transportclose')
resetCallSettings() resetCallSettings()
// socket.destroy()
} }
}) })
}) })