Commit Graph

14 Commits

Author SHA1 Message Date
Jonas Bark
69088cbb7f fix(screen-recording): guard re-entrant toggle; recover native start failures
- Ignore toggles during the transient starting/stopping states (in-flight
  guard) so a double-press can't double-start or stop-during-start.
- macOS: reset the recorder handle when start() throws, so one failure no
  longer permanently blocks recording (only stop() nilled it before).
- iOS: remove the broadcast picker view after triggering so a 1x1 view doesn't
  accumulate on the key window on every start.
- Report failures via recordError (was debugPrintStack, which vanishes in
  release builds). Adds an in-flight-toggle guard test.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-26 19:58:26 +02:00
Jonas Bark
d649e396b9 fix(screen_recorder): correct upside-down Windows recording
WGC/D3D surfaces are top-down, but the MF SinkWriter's RGB32->NV12
conversion treats uncompressed RGB as bottom-up, so feeding our top-down
buffer through produced a vertically-flipped (upside-down) recording.
Cancel the fixed flip by writing each source row into the mirrored
destination row, handing MF a bottom-up buffer. Same number of memcpys,
no extra cost.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 11:55:49 +02:00
Jonas Bark
489cc93175 fix(screen_recorder): qualify IDirect3DDxgiInterfaceAccess to fix Windows build
The interop interface lives in the ABI namespace
::Windows::Graphics::DirectX::Direct3D11, not the winrt projection
namespace pulled in via `using namespace`. The bare name was undeclared
(C2065), cascading into C2672 and C3536. Fully qualify it (with leading
:: so `using namespace winrt;` doesn't misroute it).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 11:46:31 +02:00
Jonas Bark
7b89e94b20 cleanup 2026-06-24 20:11:48 +02:00
Jonas Bark
6a557b3eaf fix(6.2): iOS broadcast stop via App Group stop-flag poll + heartbeat (Darwin as backup) 2026-06-24 19:35:24 +02:00
Jonas Bark
392e311fa2 fix(6.2): iOS broadcast stop — reuse existing App Group + register stop observer before container guard + diagnostics 2026-06-24 19:06:37 +02:00
Jonas Bark
bbe00f7193 docs(6.2): native backend setup + status (macОS/iOS/Windows manual steps) 2026-06-24 17:55:36 +02:00
Jonas Bark
081f4a113d feat(6.2): iOS screen recording backend (ReplayKit broadcast extension) [extension target needs Xcode wiring]
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-24 17:52:22 +02:00
Jonas Bark
a4ee87e85f feat(6.2): Windows screen recording backend (WGC + Media Foundation) [UNVERIFIED — needs Windows build]
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-24 17:42:15 +02:00
Jonas Bark
ccc577f7c2 fix(6.2): macOS capture at native (Retina) pixel resolution via CGDisplayMode 2026-06-24 17:35:38 +02:00
Jonas Bark
d417eb1796 fix(6.2): macOS capture robustness (native-res, finalize check, main-thread result, double-start guard, stream errors)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 17:33:11 +02:00
Jonas Bark
87642a9926 feat(6.2): macOS screen recording backend (ScreenCaptureKit)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 17:28:09 +02:00
Jonas Bark
c597d5ebc1 fix(6.2): screen_recorder plugin declares no native platforms yet (unblock macOS/Windows builds) + comment/semantics tidy
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-24 17:05:18 +02:00
Jonas Bark
0a2c3916ef chore(6.2): scaffold screen recording deps and in-repo plugin 2026-06-24 16:16:02 +02:00