Remove callback with producer id from transport-produce

This commit is contained in:
Sergiu Toma 2022-08-31 16:24:21 +03:00
parent cd887142f7
commit 4f302570a2

8
app.js
View File

@ -155,7 +155,7 @@ peers.on('connection', async socket => {
kind,
rtpParameters,
})
console.log('callback', callback);
console.log(`[transport-produce] Producer ID: ${producer.id} | kind: ${producer.kind}`)
producer.on('transportclose', () => {
@ -170,9 +170,9 @@ peers.on('connection', async socket => {
})
// Send back to the client the Producer's id
callback({
id: producer.id
})
// callback({
// id: producer.id
// })
})
// see client's socket.emit('transport-recv-connect', ...)