LINXD-2270-p2 #19

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

4
app.js
View File

@ -303,9 +303,10 @@ peers.on('connection', async socket => {
console.log(`[transport-produce] kind: ${kind} | socket.id: ${socket.id} | callId: ${callId}`);
console.log('kind', kind);
console.log('rtpParameters', rtpParameters);
console.log('isInitiator()', isInitiator());
if (kind === 'video') {
if (!isInitiator()) {
console.log('----------1');
videoCalls[callId].receiverVideoProducer = await videoCalls[callId].receiverProducerTransport.produce({
kind,
rtpParameters,
@ -337,6 +338,7 @@ peers.on('connection', async socket => {
// id: videoCalls[callId].producerVideo.id
// });
} else {
console.log('----------2');
videoCalls[callId].initiatorVideoProducer = await videoCalls[callId].initiatorProducerTransport.produce({
kind,
rtpParameters,