LH-265-enable-audio-in-mediasoup #16

Closed
sergiu wants to merge 120 commits from LH-265-enable-audio-in-mediasoup into master
Showing only changes of commit 359c7c784e - Show all commits

5
app.js
View File

@ -364,8 +364,6 @@ peers.on('connection', async socket => {
const callId = socketDetails[socket.id];
console.log('[consume] callId', callId);
console.log('🟠 videoCalls[callId].producerAudio', videoCalls[callId].producerAudio);
const canConsumeVideo = videoCalls[callId].producerVideo && videoCalls[callId].router.canConsume({
producerId: videoCalls[callId].producerVideo.id,
rtpCapabilities
@ -376,6 +374,9 @@ peers.on('connection', async socket => {
rtpCapabilities
})
console.log('[consume] canConsumeVideo', canConsumeVideo);
console.log('[consume] canConsumeAudio', canConsumeAudio);
if (canConsumeVideo && !canConsumeAudio) {
const videoParams = consumeVideo(callId, rtpCapabilities)
callback({ videoParams, audioParams: null });