fix(app): share stream audio by default and reset the opt-out per stream (#1819)

This commit is contained in:
Hampus authored and GitHub committed 2026-08-22 10:14:45 +02:00
1 parent 14e772a751
commit 137edc7cfb
4 files changed
+35 -5

No files matched your search

@@ -357,7 +357,11 @@ async function runConfiguredDisplayScreenShare(
logger.warn('No active screen share to restart for Wayland portal source switch');
return false;
}
await MediaEngine.setScreenShareEnabled(false, {sendUpdate: false, playSound: false});
await MediaEngine.setScreenShareEnabled(false, {
sendUpdate: false,
playSound: false,
preserveStreamAudioPreferences: true,
});
}
let nativeAudioArmed = false;
const isOwnWindowShare = options?.isOwnWindow === true && sourceId?.startsWith('window:');