node-mac-recorder 2.13.9 → 2.13.11
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/.claude/settings.local.json +2 -1
- package/package.json +1 -1
- package/src/mac_recorder.mm +3 -4
- package/test-quick.js +2 -2
package/package.json
CHANGED
package/src/mac_recorder.mm
CHANGED
|
@@ -165,7 +165,7 @@ Napi::Value StartRecording(const Napi::CallbackInfo& info) {
|
|
|
165
165
|
// Smart Recording Selection: ScreenCaptureKit vs Alternative
|
|
166
166
|
NSLog(@"🎯 Smart Recording Engine Selection");
|
|
167
167
|
|
|
168
|
-
//
|
|
168
|
+
// Electron environment detection (removed disable logic)
|
|
169
169
|
BOOL isElectron = (NSBundle.mainBundle.bundleIdentifier &&
|
|
170
170
|
[NSBundle.mainBundle.bundleIdentifier containsString:@"electron"]) ||
|
|
171
171
|
(NSProcessInfo.processInfo.processName &&
|
|
@@ -175,9 +175,8 @@ Napi::Value StartRecording(const Napi::CallbackInfo& info) {
|
|
|
175
175
|
[NSBundle.mainBundle.bundlePath containsString:@"Electron"]);
|
|
176
176
|
|
|
177
177
|
if (isElectron) {
|
|
178
|
-
NSLog(@"⚡ Electron environment detected -
|
|
179
|
-
NSLog(@"
|
|
180
|
-
// Continue to ScreenCaptureKit but with extreme safety
|
|
178
|
+
NSLog(@"⚡ Electron environment detected - continuing with ScreenCaptureKit");
|
|
179
|
+
NSLog(@"⚠️ Warning: ScreenCaptureKit in Electron may require additional stability measures");
|
|
181
180
|
}
|
|
182
181
|
|
|
183
182
|
// Non-Electron: Use ScreenCaptureKit
|
package/test-quick.js
CHANGED