mcap/modules/Screen_Record
Musa Mahmood 59c5b8dd62 [0.1.6] Video capture phase 4: border, toolbar, pause, discard, recovery, leftovers, [video]
- src/app/screen_record_win32.jai: while recording, a red frame just outside the region (one
  window shaped by a window region, clicks let through) and a toolbar beside it (below the
  region at its right, else above, else inside a whole screen's top right): a blinking dot,
  the time less time paused, the size, frames dropped and screen losses, and Pause/Resume,
  Stop, and Discard, confirmed in the toolbar itself ("Yes, discard / No"). GDI windows that
  never take the focus, kept out of every capture (WDA_EXCLUDEFROMCAPTURE). Buttons only ask;
  screen_record_frame acts on the next frame. On the shutdown thread they are hidden, not
  destroyed.
- modules/Screen_Record: record_pause; while paused the source is drained but nothing is sent,
  and frames' times leave the pause out, so the video has no gap. Record_Stats.paused_seconds;
  Record_Testing.LOSE_DUPLICATION loses Desktop Duplication every 3 s.
- Recordings left in %TEMP%/mcap by a crash are offered at startup: into the library (no window
  known; size from its frames, date from its name), deleted, or later.
- [video] in settings.config: fps (1-120, 30), cursor (true), capture (auto, dxgi, wgc); written
  into existing files on the next launch.
- The Win32 GDI bindings move to src/base/platform/win32_gdi_bindings.jai, shared by the overlay
  and the toolbar.
- -record-region X Y W H and -record-ui-visible for -record; -pause SECONDS and -lose for
  record-probe. capture.json's Paused.
- Checked: the toolbar is not in a whole-screen recording's frame; a 10 s pause leaves a 6.2 s
  video of a 16 s run at a steady 30 fps (DXGI and WGC); 3 simulated losses in 10 s recover with
  no gap. Tests: a leftover's date and its write (22 checks in the recording group); all pass.
- Fixed on the way: a recording's path repeated the temporary folder ("%1" is the first argument).
2026-10-10 07:45:14 +01:00
..
capture_gpu.jai [0.1.5] Video capture phase 3: Ctrl+PrintScreen records a region into the library 2026-10-10 07:14:35 +01:00
cursor.jai [0.1.3] Video capture phase 1: modules/Screen_Record and record-probe, Desktop Duplication to NVENC 2026-10-10 06:48:43 +01:00
dxgi_source.jai [0.1.4] Video capture phase 2: Windows.Graphics.Capture, for when Desktop Duplication cannot run 2026-10-10 07:03:47 +01:00
encoder.jai [0.1.3] Video capture phase 1: modules/Screen_Record and record-probe, Desktop Duplication to NVENC 2026-10-10 06:48:43 +01:00
module.jai [0.1.6] Video capture phase 4: border, toolbar, pause, discard, recovery, leftovers, [video] 2026-10-10 07:45:14 +01:00
wgc_source.jai [0.1.4] Video capture phase 2: Windows.Graphics.Capture, for when Desktop Duplication cannot run 2026-10-10 07:03:47 +01:00