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 +1 -1
- package/src/mac_recorder.mm +6 -0
package/package.json
CHANGED
package/src/mac_recorder.mm
CHANGED
|
@@ -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
|
|