LH-265-enable-audio-in-mediasoup #16
5
app.js
5
app.js
@ -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 });
|
||||
|
Loading…
Reference in New Issue
Block a user