Compare commits
7 Commits
aca0a6eac0
...
4.09
Author | SHA1 | Date | |
---|---|---|---|
6eca0808c9 | |||
f728b23b7f | |||
33c0234fb0 | |||
f81d5b2dfa | |||
ae87b5bd71 | |||
09e82fb224 | |||
1da0170261 |
11
app.js
11
app.js
@ -261,11 +261,6 @@ peers.on('connection', async (socket) => {
|
||||
? await videoCalls[callId].initiatorProducerTransport.connect({ dtlsParameters })
|
||||
: await videoCalls[callId].receiverProducerTransport.connect({ dtlsParameters });
|
||||
|
||||
const socketToEmit = isInitiator(callId, socket.id)
|
||||
? videoCalls[callId].receiverSocket
|
||||
: videoCalls[callId].initiatorSocket;
|
||||
socketToEmit.emit('new-producer', { callId });
|
||||
|
||||
} catch (error) {
|
||||
console.log(`ERROR | transport-connect | callId ${socketDetails[socket.id]} | ${error.message}`);
|
||||
}
|
||||
@ -371,6 +366,12 @@ peers.on('connection', async (socket) => {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
const socketToEmit = isInitiator(callId, socket.id)
|
||||
? videoCalls[callId].receiverSocket
|
||||
: videoCalls[callId].initiatorSocket;
|
||||
socketToEmit.emit('new-producer', { callId });
|
||||
|
||||
} catch (error) {
|
||||
console.log(`ERROR | transport-produce | callId ${socketDetails[socket.id]} | ${error.message}`);
|
||||
}
|
||||
|
BIN
doc/[video] Client - Mediasoup connect & produce.png
Normal file
BIN
doc/[video] Client - Mediasoup connect & produce.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 994 KiB |
BIN
doc/[video] Client-Client Workflow.png
Normal file
BIN
doc/[video] Client-Client Workflow.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 794 KiB |
@ -20353,7 +20353,7 @@ module.exports = yeast;
|
||||
},{}],94:[function(require,module,exports){
|
||||
module.exports = {
|
||||
hubAddress: 'https://hub.dev.linx.safemobile.com/',
|
||||
mediasoupAddress: 'https://testing.video.safemobile.org',
|
||||
mediasoupAddress: 'https://video.safemobile.org',
|
||||
}
|
||||
},{}],95:[function(require,module,exports){
|
||||
const io = require('socket.io-client')
|
||||
|
@ -1,4 +1,4 @@
|
||||
module.exports = {
|
||||
hubAddress: 'https://hub.dev.linx.safemobile.com/',
|
||||
mediasoupAddress: 'https://testing.video.safemobile.org',
|
||||
mediasoupAddress: 'https://video.safemobile.org',
|
||||
}
|
Reference in New Issue
Block a user