This commit is contained in:
Sergiu Toma 2023-01-13 18:48:57 +02:00
parent 26345bd22b
commit b1dbc401a5

4
app.js
View File

@ -299,7 +299,7 @@ peers.on('connection', async socket => {
// const router = videoCalls[callId].router; // const router = videoCalls[callId].router;receiverSocket
// router.observer.on("newtransport", (transport) => { // router.observer.on("newtransport", (transport) => {
// transport.observer.on("newproducer", (producer) => { // transport.observer.on("newproducer", (producer) => {
@ -644,6 +644,8 @@ const consumeAudio = async (callId, socketId, rtpCapabilities) => {
} }
const isInitiator = (callId, socketId) => { const isInitiator = (callId, socketId) => {
console.log('videoCalls[callId].initiatorSocket.id', videoCalls[callId].initiatorSocket.id);
console.log('socketId', socketId);
return (videoCalls[callId].initiatorSocket.id === socketId); return (videoCalls[callId].initiatorSocket.id === socketId);
} }