feat: Implement an Electron-based broadcasting client with screen/window and audio source selection, including Pipewire integration, and add auto-unmute to the viewer.

This commit is contained in:
2026-02-23 04:06:02 +01:00
parent 95208cfab6
commit 56e59a5e2b
11 changed files with 1710 additions and 0 deletions

9
client/preload.js Normal file
View File

@@ -0,0 +1,9 @@
const { contextBridge, ipcRenderer } = require('electron');
contextBridge.exposeInMainWorld('electronAPI', {
getSources: () => ipcRenderer.invoke('get-sources'),
getAudioApps: () => ipcRenderer.invoke('get-audio-apps'),
linkAppAudio: (appName) => ipcRenderer.invoke('link-app-audio', appName),
getConfig: () => ipcRenderer.invoke('get-config'),
saveConfig: (config) => ipcRenderer.invoke('save-config', config)
});