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

-14
View File
@@ -19,8 +19,6 @@ import {configureUserDataPath} from '@electron/common/UserDataPath';
import {registerAutostartHandlers} from '@electron/main/Autostart';
import {
addLinuxHardwareVideoEncodeFeatures,
addLinuxScreenCapturePipeWireFeature,
addMacosPreSequoiaScreenCaptureDisabledFeatures,
addWindowsHardwareVideoEncodeFeatures,
appendConfiguredChromiumSwitches,
appendDisabledChromiumFeatures,
@@ -67,7 +65,6 @@ import {
} from '@electron/main/NativeHardwareEncoder';
import {runNativeModulePreflight} from '@electron/main/NativeModulePreflight';
import {cleanupNativeScreenCapture, registerNativeScreenCaptureHandlers} from '@electron/main/NativeScreenCapture';
import {appendOpenH264Switches} from '@electron/main/OpenH264Manager';
import {cleanupLinuxChromiumSpellcheckDictionaries} from '@electron/main/Spellcheck';
import {registerUpdater} from '@electron/main/Updater';
import {
@@ -265,10 +262,6 @@ if (launchConfigurationError) {
addLinuxHardwareVideoEncodeFeatures(enabledChromiumFeatures);
addWindowsHardwareVideoEncodeFeatures(enabledChromiumFeatures);
}
addLinuxScreenCapturePipeWireFeature(enabledChromiumFeatures);
if (process.platform === 'darwin') {
addMacosPreSequoiaScreenCaptureDisabledFeatures(disabledChromiumFeatures);
}
appendDisabledChromiumFeatures(disabledChromiumFeatures);
if (enabledChromiumFeatures.size > 0) {
appendEnabledChromiumFeatures(enabledChromiumFeatures);
@@ -282,7 +275,6 @@ if (launchConfigurationError) {
app.setToastActivatorCLSID(WINDOWS_TOAST_ACTIVATOR_CLSID);
app.setAppUserModelId(WINDOWS_APP_USER_MODEL_ID);
}
appendOpenH264Switches();
const gotTheLock = app.requestSingleInstanceLock();
if (!gotTheLock) {
app.quit();
@@ -339,12 +331,6 @@ if (launchConfigurationError) {
} catch (error) {
log.error('[Init] Failed to register IPC handlers:', error);
}
try {
const {initOpenH264} = await import('@electron/main/OpenH264Manager');
initOpenH264();
} catch (error) {
log.warn('[Init] OpenH264 initialization skipped:', error);
}
try {
runStartupPhase('autostart-handlers', registerAutostartHandlers);
} catch (error) {