test
This commit is contained in:
parent
a75476a1b1
commit
059cbce4c4
4
app.js
4
app.js
@ -657,9 +657,9 @@ const consumeAudio = async (callId, socketId, rtpCapabilities) => {
|
|||||||
const isInitiator = (callId, socketId) => {
|
const isInitiator = (callId, socketId) => {
|
||||||
console.log('isInitiator', callId, socketId);
|
console.log('isInitiator', callId, socketId);
|
||||||
console.log('videoCalls', videoCalls);
|
console.log('videoCalls', videoCalls);
|
||||||
console.log('===============videoCalls[callId].initiatorSocket.id', videoCalls[callId].initiatorSocket.id);
|
console.log('===============videoCalls[callId].initiatorSocket.id', videoCalls[callId]?.initiatorSocket.id);
|
||||||
console.log('===============socketId', socketId);
|
console.log('===============socketId', socketId);
|
||||||
return (videoCalls[callId].initiatorSocket.id === socketId);
|
return (videoCalls[callId]?.initiatorSocket?.id === socketId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user