Compare commits
2 Commits
b2128c4754
...
ad4c1f27e7
Author | SHA1 | Date | |
---|---|---|---|
ad4c1f27e7 | |||
f48fe4f9aa |
3
app.js
3
app.js
@ -369,6 +369,7 @@ peers.on('connection', async socket => {
|
||||
try {
|
||||
const callId = socketDetails[socket.id];
|
||||
console.log(`[transport-recv-connect] socket ${socket.id} | callId ${callId}`);
|
||||
if (typeof dtlsParameters === 'string') dtlsParameters = JSON.parse(dtlsParameters);
|
||||
// await videoCalls[callId].consumerTransport.connect({ dtlsParameters });
|
||||
if(!isInitiator(callId, socket.id)) {
|
||||
await videoCalls[callId].receiverConsumerTransport.connect({ dtlsParameters });
|
||||
@ -392,6 +393,8 @@ peers.on('connection', async socket => {
|
||||
const callId = socketDetails[socket.id];
|
||||
console.log(`[consume] socket ${socket.id} | callId ${callId} | rtpCapabilities: ${JSON.stringify(rtpCapabilities)}`);
|
||||
|
||||
if (typeof rtpCapabilities === 'string') rtpCapabilities = JSON.parse(rtpCapabilities);
|
||||
|
||||
console.log('[consume] callId', callId);
|
||||
let canConsumeVideo, canConsumeAudio;
|
||||
if (isInitiator(callId, socket.id)) {
|
||||
|
Loading…
Reference in New Issue
Block a user