From 2b58502113b3479f92f0bd4ee1c16ac9a00b3424 Mon Sep 17 00:00:00 2001 From: Philipp Hancke Date: Mon, 20 Apr 2020 07:32:08 +0200 Subject: [PATCH] e2ee: also enable on p2p connections also enables e2ee on peer-to-peer connections. While a bit unnecessary it avoids the confusing UX of things working until a third person joins --- modules/RTC/RTC.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/RTC/RTC.js b/modules/RTC/RTC.js index d37fb4a0c3..0bc8aad704 100644 --- a/modules/RTC/RTC.js +++ b/modules/RTC/RTC.js @@ -506,7 +506,7 @@ export default class RTC extends Listenable { // FIXME: We should rename iceConfig to pcConfig. - if (!isP2P && browser.supportsInsertableStreams()) { + if (browser.supportsInsertableStreams()) { logger.debug('E2EE - setting insertable streams constraints'); iceConfig.forceEncodedAudioInsertableStreams = true; iceConfig.forceEncodedVideoInsertableStreams = true;