node-mac-recorder 2.21.6 → 2.21.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/mac_recorder.mm
CHANGED
|
@@ -349,6 +349,14 @@ Napi::Value StartRecording(const Napi::CallbackInfo& info) {
|
|
|
349
349
|
MRLog(@"🔧 FORCE_AVFOUNDATION environment variable detected");
|
|
350
350
|
}
|
|
351
351
|
|
|
352
|
+
// CRITICAL: ScreenCaptureKit causes segmentation faults in both Node.js and Electron
|
|
353
|
+
// FORCE AVFoundation for ALL environments until Apple fixes stability issues
|
|
354
|
+
forceAVFoundation = YES;
|
|
355
|
+
if (forceAVFoundation) {
|
|
356
|
+
MRLog(@"🔧 CRITICAL: ScreenCaptureKit disabled due to segmentation faults");
|
|
357
|
+
MRLog(@" Using AVFoundation for stability in ALL environments");
|
|
358
|
+
}
|
|
359
|
+
|
|
352
360
|
// Electron-first priority: ALWAYS use AVFoundation in Electron for stability
|
|
353
361
|
// ScreenCaptureKit has severe thread safety issues in Electron causing SIGTRAP crashes
|
|
354
362
|
if (isM15Plus && !forceAVFoundation) {
|