From 8fcfd7a3083b60e6714de53d4a8ed6cbea46f165 Mon Sep 17 00:00:00 2001 From: Titus Moldovan Date: Tue, 14 Feb 2023 17:05:34 +0200 Subject: [PATCH] fix(rn) makes the preferedCode vp8 and enabled p2p --- react/features/base/config/middleware.ts | 4 +--- react/features/base/config/reducer.ts | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/react/features/base/config/middleware.ts b/react/features/base/config/middleware.ts index 71fbca632a..9f5fc3bf46 100644 --- a/react/features/base/config/middleware.ts +++ b/react/features/base/config/middleware.ts @@ -52,9 +52,7 @@ function _setConfig({ dispatch, getState }: IStore, next: Function, action: AnyA const settings = state['features/base/settings']; const config: IConfig = {}; - // FIXME: P2P is currently temporality disabled on mobile. - // eslint-disable-next-line no-constant-condition - if (false && typeof settings.disableP2P !== 'undefined') { + if (typeof settings.disableP2P !== 'undefined') { config.p2p = { enabled: !settings.disableP2P }; } diff --git a/react/features/base/config/reducer.ts b/react/features/base/config/reducer.ts index 6abc2290b9..81712464ac 100644 --- a/react/features/base/config/reducer.ts +++ b/react/features/base/config/reducer.ts @@ -57,10 +57,8 @@ const INITIAL_RN_STATE: IConfig = { // than requiring this override here... p2p: { - // Temporarily disable P2P on mobile while we sort out some (codec?) issues. - enabled: false, disabledCodec: 'vp9', - preferredCodec: 'h264' + preferredCodec: 'vp8' }, videoQuality: {