From 2e759ff86c088aad50a786b2b12283150ffb181a Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 19 Oct 2022 17:46:49 +0100 Subject: [PATCH 1/2] Fix connectivity regressions Switches back to addTrack, digging the transceivers out manually to re-use, because the only way to group tracks into streams re-using trasceivers from the offer is to use setStreams which FF doesn't implement. --- src/webrtc/call.ts | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/src/webrtc/call.ts b/src/webrtc/call.ts index 1fb6a4c2293..cf68f9753b7 100644 --- a/src/webrtc/call.ts +++ b/src/webrtc/call.ts @@ -651,12 +651,15 @@ export class MatrixCall extends TypedEventEmitter t.receiver.track == track); this.transceivers.set(getTransceiverKey(purpose, track.kind), transceiver); } - } + }*/ this.emit(CallEvent.FeedsChanged, this.feeds); @@ -700,10 +703,14 @@ export class MatrixCall extends TypedEventEmitter t.receiver.track == track); this.transceivers.set(getTransceiverKey(purpose, track.kind), transceiver); } + */ this.emit(CallEvent.FeedsChanged, this.feeds); @@ -773,16 +780,23 @@ export class MatrixCall extends TypedEventEmitter t.sender === newSender)); } } } @@ -1313,10 +1327,8 @@ export class MatrixCall extends TypedEventEmitter t.sender === newSender)); } } } From 197a7867377592761d1719f7c491d852b1c61e25 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 19 Oct 2022 17:56:05 +0100 Subject: [PATCH 2/2] Remove comments --- src/webrtc/call.ts | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/webrtc/call.ts b/src/webrtc/call.ts index cf68f9753b7..c3967dba3ca 100644 --- a/src/webrtc/call.ts +++ b/src/webrtc/call.ts @@ -647,20 +647,6 @@ export class MatrixCall extends TypedEventEmitter t.receiver.track == track); - this.transceivers.set(getTransceiverKey(purpose, track.kind), transceiver); - } - }*/ - this.emit(CallEvent.FeedsChanged, this.feeds); logger.info( @@ -703,15 +689,6 @@ export class MatrixCall extends TypedEventEmitter t.receiver.track == track); - this.transceivers.set(getTransceiverKey(purpose, track.kind), transceiver); - } - */ - this.emit(CallEvent.FeedsChanged, this.feeds); logger.info(`Call ${this.callId} pushed remote stream (id="${stream.id}", active="${stream.active}")`);