This commit is contained in:
Sergiu Toma 2022-12-19 11:19:51 +02:00
parent 2ddeb4baaa
commit 2fbb355fea

5
app.js
View File

@ -428,8 +428,9 @@ peers.on('connection', async socket => {
callback({ videoParams, audioParams });
} else if (!canConsumeVideo && canConsumeAudio) {
const audioParams = await consumeAudio(callId, socket.id, rtpCapabilities)
console.log('-----------', { videoParams: null, audioParams });
callback({ videoParams: null, audioParams });
const data = { videoParams: null, audioParams };
console.log('-----------======= data', data);
callback(data);
} else {
console.log(`[consume] Can't consume | callId ${callId}`);
callback(null);