Skip to content

Commit d67a778

Browse files
committed
fix(macOS): microphone crash with screen sharing
Signed-off-by: Grigorii K. Shartsev <[email protected]>
1 parent bea038d commit d67a778

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/talk/renderer/components/DesktopMediaSourceDialog.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,11 @@ const requestDesktopCapturerSources = async () => {
7272
name: screens.length > 1 ? t('talk_desktop', 'Audio + All screens') : t('talk_desktop', 'Audio + Screen'),
7373
}
7474
75-
// On Wayland we don't manually provide the source stream. It is covered by Wayland and entire-desktop is not supported
76-
sources.value = window.systemInfo.isWayland ? [...screens, ...windows] : [...screens, entireDesktop, ...windows]
75+
// Wayland uses the system picker via PipeWire to select the source.
76+
// Thus, only the selected source is available, and the custom entire-desktop option is neither supported nor needed.
77+
// On macOS the entire-desktop captures only the primary screen and capturing system audio crashes audio (microphone).
78+
// TODO: use the system picker on macOS Sonoma and later
79+
sources.value = window.systemInfo.isWayland || window.systemInfo.isMac ? [...screens, ...windows] : [...screens, entireDesktop, ...windows]
7780
}
7881
7982
const handleVideoSuspend = (source) => {

0 commit comments

Comments
 (0)