feat(voice): rework screen share delivery behind an experiment (#2859)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-20 06:10:20 +02:00
1 parent 574a93257c
commit c157ab5752
121 files changed
+7205 -5502

No files matched your search

@@ -1,7 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import {PRODUCT_NAME} from '@app/features/app/config/I18nDisplayConstants';
import {getElectronAPI, isDesktop} from '@app/features/ui/utils/NativeUtils';
import type {SearchableSettingDescriptor} from '@app/features/user/components/settings_utils/search_index/SearchIndexTypes';
import {msg} from '@lingui/core/macro';
@@ -106,22 +105,6 @@ const HEVC_KEYWORD_DESCRIPTOR = msg({
message: 'HEVC',
comment: 'Settings search synonym. Codec name; keep literal. Used to match this term in the settings search bar.',
});
const OPENH264_VIDEO_CODEC_DESCRIPTOR = msg({
message: 'OpenH264 video codec',
comment: 'Settings search entry label. Names the settings search entry in the settings UI.',
});
const H264_DESCRIPTOR = msg({
message: 'H.264',
comment: 'Settings search synonym. Used to match this term when the user types it in the settings search bar.',
});
const CISCO_DESCRIPTOR = msg({
message: 'Cisco',
comment: 'Settings search synonym. Used to match this term when the user types it in the settings search bar.',
});
const ENABLE_OPENH264_SOFTWARE_ENCODING_AND_DECODING_ON_LINUX_DESCRIPTOR = msg({
message: 'OpenH264 software codec on Linux',
comment: 'Settings search entry description. One-line summary of what the settings search entry controls.',
});
const SCREEN_SHARE_PREVIEW_BEHAVIOR_DESCRIPTOR = msg({
message: 'Screen share preview behavior',
comment: 'Settings search entry label. Names the settings search entry in the settings UI.',
@@ -236,17 +219,6 @@ export const voiceVideoIndex: Array<SearchableSettingDescriptor> = [
audience: 'advanced',
tags: ['media', 'voice'],
},
{
id: 'voice-video-openh264-codec',
tabType: 'voice_video',
sectionId: 'video',
label: OPENH264_VIDEO_CODEC_DESCRIPTOR,
keywords: [H264_DESCRIPTOR, CODEC_DESCRIPTOR, CISCO_DESCRIPTOR],
description: ENABLE_OPENH264_SOFTWARE_ENCODING_AND_DECODING_ON_LINUX_DESCRIPTOR,
audience: 'advanced',
tags: ['media', 'voice'],
isVisible: () => isDesktop() && getElectronAPI()?.platform === 'linux',
},
{
id: 'voice-video-screen-share-preview-behavior',
tabType: 'voice_video',