diff --git a/client/src/main.js b/client/src/main.js index cda103f..7c61708 100644 --- a/client/src/main.js +++ b/client/src/main.js @@ -4,6 +4,12 @@ const fs = require("fs"); const { spawn } = require("child_process"); const os = require("os"); +// Chromium flags to fix audio capture issues in Electron +// Must be set before app is ready +app.commandLine.appendSwitch("disable-features", "AudioServiceOutOfProcess"); +app.commandLine.appendSwitch("enable-features", "WebRTCPipeWireCapturer"); +app.commandLine.appendSwitch("autoplay-policy", "no-user-gesture-required"); + let mainWindow; let sidecarProcess; let sidecarReady = false;