Update server
This commit is contained in:
parent
d047cdf7d1
commit
85110b7f5c
4
app.js
4
app.js
@ -364,12 +364,12 @@ peers.on('connection', async socket => {
|
||||
const callId = socketDetails[socket.id];
|
||||
console.log('[consume] callId', callId);
|
||||
|
||||
const canConsumeVideo = videoCalls[callId].producerVideo && !!videoCalls[callId].router.canConsume({
|
||||
const canConsumeVideo = !!videoCalls[callId].producerVideo && !!videoCalls[callId].router.canConsume({
|
||||
producerId: videoCalls[callId].producerVideo.id,
|
||||
rtpCapabilities
|
||||
})
|
||||
|
||||
const canConsumeAudio = videoCalls[callId].producerAudio && !!videoCalls[callId].router.canConsume({
|
||||
const canConsumeAudio = !!videoCalls[callId].producerAudio && !!videoCalls[callId].router.canConsume({
|
||||
producerId: videoCalls[callId].producerAudio.id,
|
||||
rtpCapabilities
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user