Tech & AI News
Hacker News

Rebuilding our Electron meeting-recording engine in Swift

The team replaced an unreliable Electron recording engine with native capture layers: ScreenCaptureKit on macOS and libobs on Windows. A Swift bridge auto-generates Jotai atoms for React integration. macOS assembles raw buffers from three sources, synchronizes clocks, and handles stalls. Windows runs capture, mixing, encoding, and muxing in a single graph, with BitBlt fallbacks and all-black frame detection. This architecture removes GC pauses and browser-runtime throttling, delivering consistent real-time audio-video capture across platforms.