test
This commit is contained in:
parent
256687f284
commit
2a43cd2603
8
app.js
8
app.js
@ -197,10 +197,10 @@ peers.on('connection', async socket => {
|
||||
console.log(`[createRoom] Router ID: ${videoCalls[callId].router.id}`);
|
||||
videoCalls[callId].receiverSocket = socket;
|
||||
console.log('------------', videoCalls[callId].receiverSocket);
|
||||
console.log('🟦 videoCalls[callId].receiverSocket.socket.id', videoCalls[callId].receiverSocket.socket.id)
|
||||
console.log('🟦 videoCalls[callId].receiverSocket.socket.id', videoCalls[callId].receiverSocket.id)
|
||||
} else {
|
||||
videoCalls[callId].initiatorSocket = socket;
|
||||
console.log('🟦 videoCalls[callId].initiatorSocket.id', videoCalls[callId].initiatorSocket.socket.id)
|
||||
console.log('🟦 videoCalls[callId].initiatorSocket.id', videoCalls[callId].initiatorSocket.id)
|
||||
}
|
||||
socketDetails[socket.id] = callId;
|
||||
// rtpCapabilities is set for callback
|
||||
@ -647,8 +647,8 @@ const consumeAudio = async (callId, socketId, rtpCapabilities) => {
|
||||
}
|
||||
|
||||
const isInitiator = (callId, socketId) => {
|
||||
console.log('videoCalls[callId].initiatorSocket.id', videoCalls[callId].initiatorSocket.socket.id);
|
||||
console.log('socketId', socketId);
|
||||
console.log('===============videoCalls[callId].initiatorSocket.id', videoCalls[callId].initiatorSocket.id);
|
||||
console.log('===============socketId', socketId);
|
||||
return (videoCalls[callId].initiatorSocket.socket.id === socketId);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user