Skip to content

Feat/system audio mac - #51154

Closed
xakep8 wants to merge 2 commits into
electron:mainfrom
xakep8:feat/system_audio_mac
Closed

xakep8 wants to merge 2 commits into
electron:mainfrom
xakep8:feat/system_audio_mac

Conversation

@xakep8

@xakep8 xakep8 commented Apr 19, 2026 •

Copy link
Copy Markdown
Contributor

Description of Change

Added a new internal macOS system-audio capture API and wired it end to end from native code to the browser-side internal binding.

This change introduces a dedicated capturer implementation using ScreenCaptureKit, exposes start/stop plus diagnostics through an internal linked binding, and adds internal typings and a small browser API wrapper for easier use. It also includes test coverage for the new API lifecycle and diagnostics behavior, plus internal contributor docs describing how it works and what to expect when permissions are denied.

Build and focused specs are passing, including the new system-audio spec and related desktop capture/screen checks.

This follows similar working as the npm library https://www.npmjs.com/package/@0biwank/getsystemaudio

Checklist

Release Notes

Notes: Added a new internal macOS system-audio capture API and wired it end to end from native code to the browser-side internal binding.

@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Apr 19, 2026
@xakep8
xakep8 force-pushed the feat/system_audio_mac branch from 5ed1c46 to 3228baa Compare April 19, 2026 13:41

@MarshallOfSound MarshallOfSound left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see a compelling reason for this API to exist in Electron core vs:

  • Relying on web standard audio capture APIs
  • Using a native module where appropriate

This feels like API surface that we have no business supporting.

Side note this PR appears to be AI generated and I can spot a few things that will fails the builds if kicked off, also stray scratchpad things like the docs/development change, please review our contributing policy for AI generated changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-pr 🌱 PR opened recently

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants