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.
@@ -10,7 +10,8 @@
10
10
  "Bash(MAC_RECORDER_DEBUG=1 node:*)",
11
11
  "Read(//private/tmp/test-recording/**)",
12
12
  "Bash(MAC_RECORDER_DEBUG=1 timeout 5 node:*)",
13
- "Read(//private/tmp/**)"
13
+ "Read(//private/tmp/**)",
14
+ "Bash(ffprobe:*)"
14
15
  ],
15
16
  "deny": [],
16
17
  "ask": []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-mac-recorder",
3
- "version": "2.21.6",
3
+ "version": "2.21.7",
4
4
  "description": "Native macOS screen recording package for Node.js applications",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -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) {