Understand the macOS Native Recorder Architecture
mainThe macOS native recorder uses a split architecture between Electron and a platform-native Swift helper to ensure high-performance capture and timing alignment.
- Electron (Orchestrator): Responsible for session orchestration, persistence, resolving output paths, resolving display/window/device sources, managing the helper process lifecycle (start, pause, resume, stop, cancel), and writing
RecordingSessionmanifests. - Swift Helper (Media Engine): Responsible for the actual media capture using ScreenCaptureKit and AVFoundation. It handles display/window frames, system audio, microphone, webcam composition, encoding (H.264/AAC), muxing into MP4, and timestamp normalization.
This separation ensures that screen video, audio, webcam, and cursor are all aligned to a single native timing origin, avoiding the jitter associated with browser-side stream assembly.