From bed9e0205954aab6bfb2c2831ba37a8bc1fa4d56 Mon Sep 17 00:00:00 2001 From: smartfrigde <37928912+smartfrigde@users.noreply.github.com> Date: Sun, 18 Jun 2023 20:30:22 +0200 Subject: [PATCH] Add Windows audio screensharing --- src/screenshare/main.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/screenshare/main.ts b/src/screenshare/main.ts index ef10b1b..c1303db 100644 --- a/src/screenshare/main.ts +++ b/src/screenshare/main.ts @@ -28,7 +28,11 @@ function registerCustomHandler(): void { //console.log(id); capturerWindow.close(); let result = {id, name, width: 9999, height: 9999}; - callback({video: result}); + if (process.platform === "win32") { + callback({video: result, audio: "loopback"}); + } else { + callback({video: result}); + } }); capturerWindow.loadURL(`file://${__dirname}/picker.html`); capturerWindow.webContents.send("getSources", sources);