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