79595379

Date: 2025-04-27 18:58:46
Score: 1.5
Natty:
Report link

If somebody still struggles with this. I ended up creating my own Swift binary with both ScreenCaptureKit (for MacOS 13.0-14.1) and Core Audio Hardware Taps (for MacOS 14.2+). Here are the docs:

AFAIK, to support older MacOS, you either need to write C++/Objective-C to create a Kernel Extension (needs certification) or use some kind of virtual device (Blackhole, Loopback, SoundPusher). If you know a better way, please let me know.

But writing this Swift binary wasn't easy, especially in Swift 6 with new strict concurrency. And LLMs won't help much because Swift is a niche language, so they just don't know it very well, especially the newest syntax and methods like Actors, Sendable, etc. Here are some examples for SCK and Node.js:

You can later use this binary in your Electron code with the child_process module or a library like execa: https://github.com/sindresorhus/execa

Reasons:
  • RegEx Blacklisted phrase (2.5): please let me know
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Lucas Matuszewski