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

View File

@@ -23,6 +23,13 @@ socket.on('offer', (id, description) => {
overlay.classList.add('hidden');
};
// Auto-unmute when the user interacts with the document to bypass browser// Auto-unmute when the user interacts with the document to bypass browser
document.addEventListener('click', () => {
remoteVideo.muted = false;
// Set sink to max possible volume explicitly avoiding browser gain staging
remoteVideo.volume = 1.0;
}, {once: true});
peerConnection.onicecandidate = event => {
if (event.candidate) {
socket.emit('candidate', id, event.candidate);