From 9218f6380ce6ddd3944e9d945a0887d007df9d4d Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 13 Jun 2024 19:44:30 +0100 Subject: [PATCH] Fix screen sharing in recent Chrome (#4241) * Fix screen sharing in recent Chrome Dreadful hack to work around a bug in recent chrome/electron's WebRTC, as explained. I'm not sure which is the least hideous out of this (ie. repeatedly calling setCodecPreferences and seeing if it crashes each time) or hardcoding the bad codec and skipping it. Opinions welcome. * Unused import * Remove commented line --- src/webrtc/call.ts | 42 ++++++++++++++++++++++++++++++------------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/src/webrtc/call.ts b/src/webrtc/call.ts index 45d35f60c..3f5c61a9e 100644 --- a/src/webrtc/call.ts +++ b/src/webrtc/call.ts @@ -2381,22 +2381,40 @@ export class MatrixCall extends TypedEventEmitter => {