Add log on consume

This commit is contained in:
Sergiu Toma 2022-08-16 14:36:23 +03:00
parent d67debc70b
commit 9b36a78be2

1
app.js
View File

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