LINXD-2270-p2 #19

Closed
sergiu wants to merge 58 commits from LINXD-2270-p2 into develop
Showing only changes of commit f8fcfb3165 - Show all commits

6
app.js
View File

@ -303,9 +303,9 @@ peers.on('connection', async socket => {
console.log(`[transport-produce] kind: ${kind} | socket.id: ${socket.id} | callId: ${callId}`); console.log(`[transport-produce] kind: ${kind} | socket.id: ${socket.id} | callId: ${callId}`);
console.log('kind', kind); console.log('kind', kind);
console.log('rtpParameters', rtpParameters); console.log('rtpParameters', rtpParameters);
console.log('isInitiator()', isInitiator()); console.log('isInitiator()', isInitiator(callId, socket.id));
if (kind === 'video') { if (kind === 'video') {
if (!isInitiator()) { if (!isInitiator(callId, socket.id)) {
console.log('----------1'); console.log('----------1');
videoCalls[callId].receiverVideoProducer = await videoCalls[callId].receiverProducerTransport.produce({ videoCalls[callId].receiverVideoProducer = await videoCalls[callId].receiverProducerTransport.produce({
kind, kind,
@ -357,7 +357,7 @@ peers.on('connection', async socket => {
}); });
} }
} else if (kind === 'audio') { } else if (kind === 'audio') {
if (!isInitiator()) { if (!isInitiator(callId, socket.id)) {
videoCalls[callId].receiverAudioProducer = await videoCalls[callId].receiverProducerTransport.produce({ videoCalls[callId].receiverAudioProducer = await videoCalls[callId].receiverProducerTransport.produce({
kind, kind,
rtpParameters, rtpParameters,