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. Edit: LiveKit work around this bug by using the receiver codecs (https://github.com/livekit/client-sdk-js/pull/1088) so that's also an option.
This will probably want backporting to the release.
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. Edit: LiveKit work around this bug by using the receiver codecs (https://github.com/livekit/client-sdk-js/pull/1088) so that's also an option.
This will probably want backporting to the release.
Fixes https://github.com/element-hq/element-desktop/issues/1703
Checklist
public
/exported
symbols have accurate TSDoc documentation.