Remove callback with producer id from transport-produce

This commit is contained in:
Sergiu Toma 2022-08-31 16:47:54 +03:00
parent 4e92f6cdd3
commit d5cb144799

2
app.js
View File

@ -177,7 +177,7 @@ peers.on('connection', async socket => {
socket.on('consume', async ({ rtpCapabilities, callId }, callback) => { socket.on('consume', async ({ rtpCapabilities, callId }, callback) => {
try { try {
console.log('consume', rtpCapabilities, callId); // console.log('consume', rtpCapabilities, callId);
// check if the router can consume the specified producer // check if the router can consume the specified producer
if (router[callId].canConsume({ if (router[callId].canConsume({
producerId: producer.id, producerId: producer.id,