mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-26 07:45:34 +00:00
On macOS versions before Sonoma (14.0), SCStreamConfiguration does not support the captureMicrophone/microphoneCaptureDeviceID selectors. The native helper was throwing a fatal error, blocking recording entirely when microphone was enabled. Now the Swift helper logs MICROPHONE_CAPTURE_UNAVAILABLE and continues capture without microphone. The Node handler detects this signal and returns microphoneFallbackRequired to the renderer, which starts a browser-side MediaRecorder capturing the mic via getUserMedia. On stop, the audio blob is saved as a .mic.webm sidecar alongside the native recording, where the existing companion audio detection picks it up. Fixes: 'Native microphone capture is unavailable on this macOS/Xcode runtime' error on older macOS versions.