From 25e7b79237f204a34f67ee65152ddb58d94e3820 Mon Sep 17 00:00:00 2001 From: Jaya Allamsetty <54324652+jallamsetty1@users.noreply.github.com> Date: Tue, 20 Sep 2022 13:16:54 -0400 Subject: [PATCH] feat(multi-stream) Enable multi-stream by default (if not disabled explicitly). --- react/features/base/config/functions.any.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/react/features/base/config/functions.any.ts b/react/features/base/config/functions.any.ts index aa011bc3e..ec4999964 100644 --- a/react/features/base/config/functions.any.ts +++ b/react/features/base/config/functions.any.ts @@ -60,8 +60,8 @@ export function getMeetingRegion(state: IState) { * @returns {boolean} */ export function getMultipleVideoSupportFeatureFlag(state: IState) { - return getFeatureFlag(state, FEATURE_FLAGS.MULTIPLE_VIDEO_STREAMS_SUPPORT) - && getSourceNameSignalingFeatureFlag(state); + return (getFeatureFlag(state, FEATURE_FLAGS.MULTIPLE_VIDEO_STREAMS_SUPPORT) + && getSourceNameSignalingFeatureFlag(state)) ?? true; } /** @@ -72,7 +72,7 @@ export function getMultipleVideoSupportFeatureFlag(state: IState) { */ export function getMultipleVideoSendingSupportFeatureFlag(state: IState) { return navigator.product !== 'ReactNative' - && getMultipleVideoSupportFeatureFlag(state) && isUnifiedPlanEnabled(state); + && ((getMultipleVideoSupportFeatureFlag(state) ?? true) && isUnifiedPlanEnabled(state)); } /** @@ -82,7 +82,7 @@ export function getMultipleVideoSendingSupportFeatureFlag(state: IState) { * @returns {boolean} */ export function getSourceNameSignalingFeatureFlag(state: IState) { - return getFeatureFlag(state, FEATURE_FLAGS.SOURCE_NAME_SIGNALING); + return getFeatureFlag(state, FEATURE_FLAGS.SOURCE_NAME_SIGNALING) ?? true; } /** @@ -95,7 +95,7 @@ export function getSourceNameSignalingFeatureFlag(state: IState) { export function getFeatureFlag(state: IState, featureFlag: string) { const featureFlags = state['features/base/config']?.flags || {}; - return Boolean(featureFlags[featureFlag as keyof typeof featureFlags]); + return featureFlags[featureFlag as keyof typeof featureFlags]; } /**