Skip to content

docs: improve desktop-capturer loopback docs - #47493

Closed
alectrocute wants to merge 5 commits into
electron:mainfrom
alectrocute:improve-desktop-capturer-loopback-docs
Closed

alectrocute wants to merge 5 commits into
electron:mainfrom
alectrocute:improve-desktop-capturer-loopback-docs

Conversation

@alectrocute

Copy link
Copy Markdown

Description of Change

Checklist

Release Notes

Notes: none

@welcome

welcome Bot commented Jun 18, 2025

Copy link
Copy Markdown

💖 Thanks for opening this pull request! 💖

Semantic PR titles

We use semantic commit messages to streamline the release process. Before your pull request can be merged, you should update your pull request title to start with a semantic prefix.

Examples of commit messages with semantic prefixes:

  • fix: don't overwrite prevent_default if default wasn't prevented
  • feat: add app.isPackaged() method
  • docs: app.isDefaultProtocolClient is now available on Linux

Commit signing

This repo enforces commit signatures for all incoming PRs.
To sign your commits, see GitHub's documentation on Telling Git about your signing key.

PR tips

Things that will help get your PR across the finish line:

  • Follow the JavaScript, C++, and Python coding style.
  • Run npm run lint locally to catch formatting errors earlier.
  • Document any user-facing changes you've made following the documentation styleguide.
  • Include tests when adding/changing behavior.
  • Include screenshots and animated GIFs whenever possible.

We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can.

@nikwen nikwen 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.

Thank you so much for the docs change! Appreciate that a lot!

I'll take a closer look when I'm at a computer.

Could you please wrap lines between 80 and 100 characters as per our docs style guide?

Comment thread docs/api/desktop-capturer.md Resolved
Comment thread docs/api/desktop-capturer.md Resolved
Comment thread docs/api/desktop-capturer.md Resolved
<button id="startButton" class="button">Start</button>
<button id="stopButton" class="button">Stop</button>
<video width="320" height="240" autoplay></video>
<video width="320" height="240" autoplay controls></video>

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

DX improvement: controls being visible is important for the dev to be able to easily determine if there's an audio track available or not.

@alectrocute

Copy link
Copy Markdown
Author

Thanks so much @nikwen! I took your feedback and ran with it, rewrote a bunch of stuff and added even more clarity. Let me know what you think!

@alectrocute
alectrocute requested a review from nikwen June 18, 2025 01:10

@nikwen nikwen 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.

Thanks! This is great.

Also requesting a review from @codebytere as she probably has the best understanding of that code.

Comment thread docs/api/desktop-capturer.md Resolved
Comment thread docs/api/desktop-capturer.md Resolved
Comment thread docs/api/desktop-capturer.md Resolved
Comment thread docs/api/desktop-capturer.md Resolved
@nikwen
nikwen requested a review from codebytere June 18, 2025 15:40
@alectrocute

Copy link
Copy Markdown
Author

Thanks so much, @nikwen. I've applied your feedback.

Last thing I'm debating is adding a "macOS Caveats" header to lead the "System Audio Capture" sections at the bottom. I kinda feel like the macOS notes at the bottom come out of nowhere. Thoughts?

@nikwen

nikwen commented Jun 18, 2025

Copy link
Copy Markdown
Member

Last thing I'm debating is adding a "macOS Caveats" header to lead the "System Audio Capture" sections at the bottom. I kinda feel like the macOS notes at the bottom come out of nowhere. Thoughts?

I think that's a great idea. Thanks!

@alectrocute

Copy link
Copy Markdown
Author

Last thing I'm debating is adding a "macOS Caveats" header to lead the "System Audio Capture" sections at the bottom. I kinda feel like the macOS notes at the bottom come out of nowhere. Thoughts?

I think that's a great idea. Thanks!

Done—Looks much better now.

@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Jun 19, 2025
@alectrocute
alectrocute requested a review from nikwen June 19, 2025 17:38

@nikwen nikwen 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.

Thank you so much!

I found some more comments on other ways to make loopback audio capture work on macOS 14.2+:

https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/flag_descriptions.cc;l=6247-6253;drc=19d14ae4a957ef0f158e3b37cc7f3c76e839ce5d

https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/flag_descriptions.cc;l=6235-6238;drc=19d14ae4a957ef0f158e3b37cc7f3c76e839ce5d

I wonder if that would work around the macOS 15 bugs. (Or does it introduce new ones?)

Also added some minor things inline. This PR is in pretty good shape now in my opinion.


### System Audio Capture (before macOS 12.3)

On macOS 12.3 or lower, system audio capture is not supported due to a fundamental limitation whereby

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.

Suggested change
On macOS 12.3 or lower, system audio capture is not supported due to a fundamental limitation whereby
Before macOS 12.3, system audio capture is not supported due to a fundamental limitation whereby

Sounds like it works on 12.3.

@shirakaba shirakaba Jun 20, 2025 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You can indeed try opting in to it by enabling the MacSckSystemAudioLoopbackOverride flag, but one downstream codepath regards ScreenCaptureKit as too buggy to use until 13.2, so I'm not sure it'll work in practice.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Yeah, I was playing it safe here. We can and probably should get more specific.

### System Audio Capture (before macOS 12.3)

On macOS 12.3 or lower, system audio capture is not supported due to a fundamental limitation whereby
apps that want to access the system's audio require a [signed kernel extension](https://developer.apple.com/library/archive/documentation/Security/ConceptualSystem_Integrity_Protection_Guide/KernelExtensions/KernelExtensions.html).

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.

Suggested change
apps that want to access the system's audio require a [signed kernel extension](https://developer.apple.com/library/archive/documentation/Security/ConceptualSystem_Integrity_Protection_Guide/KernelExtensions/KernelExtensions.html).
apps that want to access the system's audio require a
[signed kernel extension](https://developer.apple.com/library/archive/documentation/Security/ConceptualSystem_Integrity_Protection_Guide/KernelExtensions/KernelExtensions.html).

Wrapping between 80 and 100 chars.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I guess I'm a total markdown noob but how do I wrap a long URL link without breaking it? Whenever I try to split that big string, it breaks the link in my Markdown Preview.

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.

Yes, links can't be wrapped. It's okay if links are longer if they are the only thing in a line.

> ```js
> // main.js
> app.commandLine.appendSwitch('enable-features', 'MacSckSystemAudioLoopbackOverride');
> ```

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You can indeed try opting in to it by enabling the MacSckSystemAudioLoopbackOverride flag, but one downstream codepath regards ScreenCaptureKit as too buggy to use until 13.2, so I'm not sure it'll work in practice.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I honestly just need to test this on macOS 12.x to get to the bottom of it. I was erring on the side of caution here.

@shirakaba shirakaba left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I do think the desktopCapturer docs need some clarifying for macOS. They have led me (and, judging by weekly threads on Reddit, many others) astray. These changes help a lot, thanks!

### System Audio Capture (macOS 12.3+)

It is possible to circumvent this limitation by capturing system audio with another macOS app like Soundflower and passing it through a virtual audio input device. This virtual device can then be queried with `navigator.mediaDevices.getUserMedia`.
On macOS 12.3+, `navigator.mediaDevices.getDisplayMedia` can be used to capture system audio

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Would be good to be explicit about which macOS versions, if any, navigator.mediaDevices.getUserMedia() can be used on.

I seem to recall from recent testing on macOS 14.6.1 that it can't be used at all, but worth double-checking before reporting it in the docs.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I'm unaware of this. 😅

Comment on lines +111 to +118
> [!NOTE]
> Due to ongoing changes in Chromium, capturing system audio is experimental on macOS 15+ and requires the
> following [command line switch](./command-line-switches.md) to be appended. Please note that you may experience bugs.
>
> ```js
> // main.js
> app.commandLine.appendSwitch('enable-features', 'MacSckSystemAudioLoopbackOverride');
> ```

@shirakaba shirakaba Jun 20, 2025 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think this is inaccurate.

Looking at how IsSystemLoopbackCaptureSupported() is implemented in Chromium, loopback capture depends on both the macOS version and the state of the MacSckSystemAudioLoopbackOverride and MacCatapSystemAudioLoopbackCapture flags (which are both disabled by default). The audio system used may be based on ScreenCaptureKit or Core Audio taps.

  • 🔴 version < 12.3:
    • Loopback capture is not possible.
  • 🔴 12.3 ≤ version < 13.0:
    • Loopback capture is probably not possible. Although ScreenCaptureKit is technically available from macOS 12.3, the Chromium codebase notes that it is too buggy to activate until 13.2. You can try enabling the MacSckSystemAudioLoopbackOverride flag to opt in to it, but I think it won't work in practice.
  • 🔴 13.0 ≤ version < 13.2:
    • Loopback capture is probably not possible. Although the top-level IsMacSckSystemAudioLoopbackCaptureEnabled() check defaults to true for this version range (meaning that the ScreenCaptureKit implementation is enabled even without enabling the MacSckSystemAudioLoopbackOverride flag), in practice, certain downstream codepaths treat it as too buggy to activate.
  • 🟢 13.2 ≤ version < 14.2:
    • Loopback capture is possible, via ScreenCaptureKit only, and is enabled by default; no flag needed.
  • 🟢 14.2 ≤ version < 15.0:
    • Loopback capture is possible, via either ScreenCaptureKit or Core Audio taps. By default, it is enabled, and done via ScreenCaptureKit. However, you can opt-in to Core Audio taps instead by enabling the MacCatapSystemAudioLoopbackCapture flag (which takes precedence).
  • 🟡 15.0 ≤ version:
    • Loopback capture is possible, via either ScreenCaptureKit or Core Audio taps. By default, it is disabled altogether.
      • To enable it via Core Audio taps (the preferred approach from macOS 15.0 and above), enable the MacCatapSystemAudioLoopbackCapture flag. As this flag takes precedence, it doesn't matter whether MacSckSystemAudioLoopbackOverride is enabled or disabled.
      • To enable it via ScreenCaptureKit (not recommended, due to permissions prompt issues from macOS 15.0), you must enable the MacSckSystemAudioLoopbackOverride flag and disable/omit the MacCatapSystemAudioLoopbackCapture flag.

So, in summary, to support the maximum version range of 13.2 ≤ version, you should enable the MacCatapSystemAudioLoopbackCapture flag to extend support for version ≥ 15.0.

If both the MacSckSystemAudioLoopbackOverride and MacCatapSystemAudioLoopbackCapture flags are enabled, the latter will take precedence.

I should clarify that this is just based on my analysis of the latest commit on the main branch of Chromium. It might be that things were different in previous versions of Chromium, and it might be that Electron builds Chromium with different flags (however, I find no search results for either).

Does this match your experience?

@alectrocute alectrocute Jun 20, 2025 •

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This is a great write-up, thank you. I see that there's definitely some inaccuracies that'll need to be fixed here.

Per my experience, talking strictly system audio capture (there very well could be horrible bugs related to screen capture but I haven't really tested that) — For macOS versions 13.2 through 15.5, I'm able to verify that system audio capture works great via ScreenCaptureKit, only flags that are needed are MacSckSystemAudioLoopbackOverride. System permission prompts work fine.

For testing, I've created this little NPM package to make things easy in Electron Fiddle or an example project of your choice: https://github.com/alectrocute/electron-audio-loopback/tree/main

The implementation in my package is all I've tested, so we'll want to definitely reinforce in the docs that a lot of this is still experimental.

@shirakaba shirakaba Jun 20, 2025 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

In order to provide complete guidance, the biggest questions in my mind are:

  • For 12.3 ≤ version < 13.0:
    • if you enable MacSckSystemAudioLoopbackOverride, does loopback capture work?
  • For 13.0 ≤ version < 13.2:
    • without passing any flags, does loopback capture work at all?
  • For 15.0 ≤ version:
    • without passing any flags, does loopback capture work at all?
    • if you enable MacCatapSystemAudioLoopbackCapture, does loopback capture work?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

  • For 12.3 ≤ version < 13.0:

I will report back.

  • For 13.0 ≤ version < 13.2:

I will report back.

  • For 15.0 ≤ version:

    • without passing any flags, does loopback capture work at all?

I can verify that without passing any flags, loopback capture does not work. No errors thrown, the getDisplayMedia audio media track just arrives in an ended state.

  • if you pass MacCatapSystemAudioLoopbackCapture , does loopback capture work?

I will report back.

@carloslenz carloslenz Jul 22, 2025 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Another question:

With MacCatapSystemAudioLoopbackCapture enabled, does it mean that it only requires System Audio Recording Only, versus Screen & System Audio Recording?

Since many apps just need the audio, I'm wondering if chromium supports this mode.

Ofc MDN says getDisplayMedia({ audio: true, video: false }) is not supported but using Core Audio Tap for audio is not a huge benefit if Screen Recording is necessary anyway.

@shirakaba shirakaba Jul 22, 2025 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

With MacCatapSystemAudioLoopbackCapture enabled, does it mean that it only requires System Audio Recording Only, versus Screen & System Audio Recording?

To explain for others, this is referring to two different lists in System Settings > Privacy & Security > Screen & System Audio Recording: Screen & System Audio Recording and System Audio Recording Only.

Screenshot 2025-07-23 at 5 50 24

I've not tried setting MacCatapSystemAudioLoopbackCapture myself, so I can only guess.

  • The Electron app I am developing, which doesn't pass any Chromium flags at all, appears in the Screen & System Audio Recording list in macOS Sonoma 14.6.1.
  • Apple's ScreenCaptureKit demo requests a permission that places it in the Screen & System Audio Recording list.
  • insidegui's Core Audio tap demo requests a permission that places it in the System Audio Recording Only list.

Based on that, there's a good possibility that enabling MacCatapSystemAudioLoopbackCapture would cause your app to request a permission that places it in the System Audio Recording Only list instead.

Ofc MDN says getDisplayMedia({ audio: true, video: false }) is not supported but using Core Audio Tap for audio is not a huge benefit if Screen Recording is necessary anyway.

Yes, that's is a good counterpoint, Chromium may still have to record the screen, so it may be a moot point anyway. I think we can only be sure by giving it a try.

@shirakaba

shirakaba commented Jun 20, 2025 •

Copy link
Copy Markdown

I found some more comments on other ways to make loopback audio capture work on macOS 14.2+:

https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/flag_descriptions.cc;l=6247-6253;drc=19d14ae4a957ef0f158e3b37cc7f3c76e839ce5d

https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/flag_descriptions.cc;l=6235-6238;drc=19d14ae4a957ef0f158e3b37cc7f3c76e839ce5d

@nikwen I looked into these when doing my analysis in this comment. I think the flag descriptions are unhelpful, as they don't reflect the full behaviour as to how they're treated in the source (e.g. how 12.3 ≤ version < 13.0 and version ≥ 15.0 are handled) and how they interact with each other.

@nikwen

nikwen commented Jul 1, 2025

Copy link
Copy Markdown
Member

Thanks, @shirakaba and @alectrocute, for diving further into this. Can you ping me (@nikwen) when you've figured out how it all works and have updated the PR? I'll be honest: I've never worked with system audio capture in Electron.

@shirakaba

shirakaba commented Jul 22, 2025 •

Copy link
Copy Markdown

I feel we have most of the picture based on my comment showing the version compatibility ranges. However, as this was purely a code-level analysis, I was waiting for confirmation of some of my conclusions so that we could confidently update the docs without misleading anyone.

We could probably still update the docs with some of the research from my analysis as-is, just using the term "may" tactically:

  • May require enabling the MacCatapSystemAudioLoopbackCapture flag to support recording system audio on macOS 15.0 and above (unconfirmed).
  • System audio recording is supported on macOS 13.2 ≤ version < 15.0 (confirmed).
  • May not be able to record system audio at all on macOS 13.0 ≤ version < 13.2 (unconfirmed).
  • Likely unable to record system audio at all on macOS 12.3 ≤ version < 13.0 (unconfirmed).
  • Unable to record system audio at all on macOS version < 12.3 (confirmed).

@alectrocute

Copy link
Copy Markdown
Author

Sorry, I swear I've been meaning to get back to this, I'm just swamped at my full-time. Will return to this in the next 7 days @shirakaba!

@codebytere

Copy link
Copy Markdown
Member

@alectrocute do you still plan to pursue this?

@alectrocute

Copy link
Copy Markdown
Author

@alectrocute do you still plan to pursue this?

Hey @codebytere! I do indeed—I've been chipping away at my OSS backlog and I'm almost ready to return to this.

@erickzhao erickzhao added the target/39-x-y PR should also be added to the "39-x-y" branch. label Oct 7, 2025
@aidenlx

aidenlx commented Oct 17, 2025 •

Copy link
Copy Markdown

I've tested Core Audio Tap in macOS 15 and macOS 26 using electron 37.3.0 with --enable-features=MacCatapSystemAudioLoopbackCapture,PulseaudioLoopbackForScreenShare,MacLoopbackAudioForScreenShare flags, and the following DisplayMediaRequestHandler:

session.defaultSession.setDisplayMediaRequestHandler((event, callback) => {
    callback({ audio: "loopback" });
});

And attempting to get media stream using navigator.mediaDevices.getDisplayMedia({ audio: true, video: false }) in renderer. Here is the result

macOS 15.5

getDisplayMedia will not trigger any prompt for permission and failed with NotReadableError: Could not start audio source. I can get media stream by manually granting "System Audio Recording Only" permission to binary, but it would return media stream with single loopback audio track with "ended" readyState. Unlike ScreenCaptureKit, no menu bar indicator shown during the process.

macOS 26.0

getDisplayMedia does trigger permission prompt for "System Audio Recording Only", but it will end up with same "ended" audio track for unknown reason. also no menu bar indicator shown during the process.

Apple have created a guide for using Core Audio Taps targetting macOS 26+, I guess this api wasn't public before? Capturing system audio with Core Audio taps


PS: MacSckSystemAudioLoopbackOverride works in both versions, although we cannot get only loopback audio without video track. navigator.mediaDevices.getDisplayMedia({ audio: true, video: false }) will throw NotSupportedError: Not supported directly.

@makeusabrew

Copy link
Copy Markdown

Based on that, there's a good possibility that enabling MacCatapSystemAudioLoopbackCapture would cause your app to request a permission that places it in the System Audio Recording Only list instead. [ ...] Chromium may still have to record the screen, so it may be a moot point anyway. I think we can only be sure by giving it a try.

@shirakaba in my testing so far (macOS 15.7.1), setting MacCatapSystemAudioLoopbackCapture is not enough to convince Chromium to request the system audio only permission, even when I ignore the MDN advice and request with video: false. That said, I can't be certain that any feature flags I'm trying to set are having the desired effect, because things seem to work equally well (and with the same prompt/permission results) whatever I set, and even if I set none at all - behaviour which seems to contradict your painstakingly reverse-engineered explanation earlier in this thread.

[macOS 26.0] getDisplayMedia does trigger permission prompt for "System Audio Recording Only", but it will end up with same "ended" audio track for unknown reason. also no menu bar indicator shown during the process.

@aidenlx that's very interesting, and is as close as anyone has got so far to the holy grail of the correct permission being triggered. No menu bar indicator is correct, or rather you should see a tiny dot instead of the big screen icon:

image

(Note in this case the dot is orange because I'm using mic and sys audio, but it would be purple otherwise)

Apple have created a guide for using Core Audio Taps targetting macOS 26+, I guess this api wasn't public before? Capturing system audio with Core Audio taps

This is a total rug pull by Apple. Core Audio Taps has been available and stable since 14.2, but once 26.0 was announced they changed that page to indicate that it was 26.0+ only. The page refuses to render via Wayback Machine so I can't prove it other than to say I've been using it with no issues whatsoever on my 14.x laptop and 15.x desktop all year.

@shirakaba

shirakaba commented Oct 24, 2025 •

Copy link
Copy Markdown

@aidenlx @makeusabrew thank you both for the data points! I was hoping it'd all neatly line up with my expectations from the Chromium source code, but so far we've not seen it add up somehow.

behaviour which seems to contradict your painstakingly reverse-engineered explanation earlier in this thread.

This whole time, I've been running under the assumption that Electron (and frameworks like Electron Forge / Electron Builder) don't pass any flags to Chromium, and that the defaults are what I've dug up in the Chromium codebase.

But if it turns out that I'm wrong about Chromium's default flags, or have overlooked some flags that Electron (or Electron Forge / Electron Builder) pass to Chromium, it might explain some of the cases mentioned above where recording is possible on macOS ≥ 15.0. Wish we could be sure. Is it possible to print out the flags Chromium was configured with?

This is a total rug pull by Apple. Core Audio Taps has been available and stable since 14.2, but once 26.0 was announced they changed that page to indicate that it was 26.0+ only. The page refuses to render via Wayback Machine so I can't prove it other than to say I've been using it with no issues whatsoever on my 14.x laptop and 15.x desktop all year.

You're not dreaming. I wrote Core Audio code using that Capturing system audio with Core Audio taps guide last year. At the time, I wrote these notes about the version support range for the key Core Audio taps features I was using for system audio capture:

And this of course lines up with some of the version ranges mentioned in my reverse-engineering above.

@github-actions github-actions Bot added the target/40-x-y PR should also be added to the "40-x-y" branch. label Oct 28, 2025
@github-actions github-actions Bot added the target/41-x-y PR should also be added to the "41-x-y" branch. label Jan 19, 2026
@claudiomaxx

Copy link
Copy Markdown

To get the "System Audio Recording Only" permission prompt, I had to add NSAudioCaptureUsageDescription to the Info.plist file.

I tested it on macOS 15 and 26 with Electron 39

https://developer.apple.com/documentation/coreaudio/capturing-system-audio-with-core-audio-taps

@nikwen

nikwen commented Feb 26, 2026

Copy link
Copy Markdown
Member

@claudiomaxx That should now be included by default thanks to @Bug-Reaper and #49717.

@github-actions github-actions Bot added the target/42-x-y PR should also be added to the "42-x-y" branch. label Mar 13, 2026
@github-actions github-actions Bot added the target/43-x-y PR should also be added to the "43-x-y" branch. label May 6, 2026
@github-actions github-actions Bot added the target/44-x-y PR should also be added to the "44-x-y" branch. label Jul 1, 2026
@MarshallOfSound

Copy link
Copy Markdown
Member

Superseded by #50091 and #49717

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

Labels

documentation 📓 semver/patch backwards-compatible bug fixes target/39-x-y PR should also be added to the "39-x-y" branch. target/40-x-y PR should also be added to the "40-x-y" branch. target/41-x-y PR should also be added to the "41-x-y" branch. target/42-x-y PR should also be added to the "42-x-y" branch. target/43-x-y PR should also be added to the "43-x-y" branch. target/44-x-y PR should also be added to the "44-x-y" branch. wip ⚒

Projects

None yet

Development

Successfully merging this pull request may close these issues.

desktopCapturer: Use ScreenCaptureKit API to enable capturing loopback audio on macOS