desktop: revert screenshare to video-only capture

The 1.0.1 loopback-audio request broke Windows screenshare entirely;
we don't need Windows audio, so go back to plain {video}.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-10 19:40:31 -07:00
parent a716252c67
commit 955b3ea71d
+1 -9
View File
@@ -145,15 +145,7 @@ ipcMain.on("ipcCall", async function (_ev: IpcMainEvent, payload) {
}));
break;
case "callDisplayMediaCallback":
// Blap: capture system audio alongside the shared screen. Electron's
// "loopback" audio is supported on Windows and macOS only (not Linux), so we
// gate on platform — passing it on Linux would fail the whole share.
await getDisplayMediaCallback()?.({
video: args[0],
...(process.platform === "win32" || process.platform === "darwin"
? { audio: "loopback" as const }
: {}),
});
await getDisplayMediaCallback()?.({ video: args[0] });
setDisplayMediaCallback(null);
ret = null;
break;