Screen share 5: Windows screen capture backend (spike → production) #152

Closed
opened 2026-11-12 02:06:54 +00:00 by charles · 0 comments
Owner

Files:

  • Modify: crates/fluxer-capture/src/desktop.rs (Windows cfg), crates/fluxer-capture/{Cargo.toml,README.md}, docs/superpowers/research/2026-11-11-screenshare-spikes.md (§3)
  • Create: crates/fluxer-capture/tests/windows_real.rs
  • Test: as above

Interfaces:

  • Produces: DesktopScreenCapturer on Windows: WGC screen and window capture (DXGI fallback for screens as libwebrtc chooses), Screen/Window lists with titles, owning pid (for application audio, Task 15) and 480×270 thumbnails; own window excluded from the list; cursor included. default_backends() returns it on Windows.

  • Spike part: spikes §3: pixel format, the yellow WGC border (present? can it be disabled through the SDK?), window-capture behaviour on minimise/resize, what happens on Server Core (the CI runner), CPU at 1080p30. Fallback: a wgc.rs backend on the windows crate (0.62) if DesktopCapturer misbehaves.

  • If Task 4 is not merged, create desktop.rs with only the Windows part and leave the merge to the integrator (mechanical).

  • Step 1: Write failing tests: CI server_core_reports_unsupported_or_lists_nothing_without_panicking; real screen_capture_delivers_frames, window_list_has_titles_and_pids_and_excludes_self, closing_captured_window_reports_ended.

  • Step 2–5: FAIL → implement → PASS (real tests on a Windows 10/11 desktop by the implementer if one is available; otherwise say so and keep them #[ignore]) → commit feat(capture): Windows screen capture.

Depends on: Screen share 3 (#150)

Plan: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/plans/2026-11-11-screenshare.md
Spec: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/specs/2026-11-11-fluxer-native-screenshare-design.md

**Files:** - Modify: `crates/fluxer-capture/src/desktop.rs` (Windows `cfg`), `crates/fluxer-capture/{Cargo.toml,README.md}`, `docs/superpowers/research/2026-11-11-screenshare-spikes.md` (§3) - Create: `crates/fluxer-capture/tests/windows_real.rs` - Test: as above **Interfaces:** - Produces: `DesktopScreenCapturer` on Windows: WGC screen and window capture (DXGI fallback for screens as libwebrtc chooses), `Screen`/`Window` lists with titles, owning `pid` (for application audio, Task 15) and 480×270 thumbnails; own window excluded from the list; cursor included. `default_backends()` returns it on Windows. - Spike part: *spikes §3*: pixel format, the yellow WGC border (present? can it be disabled through the SDK?), window-capture behaviour on minimise/resize, what happens on Server Core (the CI runner), CPU at 1080p30. **Fallback**: a `wgc.rs` backend on the `windows` crate (0.62) if `DesktopCapturer` misbehaves. - If Task 4 is not merged, create `desktop.rs` with only the Windows part and leave the merge to the integrator (mechanical). - [ ] **Step 1: Write failing tests**: CI `server_core_reports_unsupported_or_lists_nothing_without_panicking`; real `screen_capture_delivers_frames`, `window_list_has_titles_and_pids_and_excludes_self`, `closing_captured_window_reports_ended`. - [ ] **Step 2–5:** FAIL → implement → PASS (real tests on a Windows 10/11 desktop by the implementer if one is available; otherwise say so and keep them `#[ignore]`) → commit `feat(capture): Windows screen capture`. Depends on: Screen share 3 (#150) Plan: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/plans/2026-11-11-screenshare.md Spec: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/specs/2026-11-11-fluxer-native-screenshare-design.md
charles added this to the Screen share milestone 2026-11-12 02:06:54 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#152
No description provided.