node-mac-recorder 2.16.8 → 2.16.9

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-mac-recorder",
3
- "version": "2.16.8",
3
+ "version": "2.16.9",
4
4
  "description": "Native macOS screen recording package for Node.js applications",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -74,7 +74,13 @@ Napi::Value StartRecording(const Napi::CallbackInfo& info) {
74
74
  return env.Null();
75
75
  }
76
76
 
77
+ // IMPORTANT: Clean up any stale recording state before starting
78
+ // This fixes the issue where macOS 14/13 users get "recording already in progress"
79
+ NSLog(@"🧹 Cleaning up any previous recording state...");
80
+ cleanupRecording();
81
+
77
82
  if (g_isRecording) {
83
+ NSLog(@"⚠️ Still recording after cleanup - forcing stop");
78
84
  return Napi::Boolean::New(env, false);
79
85
  }
80
86