- 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>
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>
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>