hex/crates/capture
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kit Langton 7727ce0af3
fix(capture): finish the screen recording before stopping it, via capture-core (#258)
* feat(capture-core): set_exclusions

Recording::set_exclusions changes which windows and apps a live recording leaves out, without stopping it. Display and region streams rebuild their filter; window streams are left alone. A stopped recording ignores it.

* fix(capture): finish the screen recording before stopping its stream

The macOS screen recording now runs on capture-core's Recorder: one source per target, cursor baked in, no audio or input. The core detaches the movie before it stops the stream and finishes it on its own bounded thread, holding the final frame to the stop and writing capture.json beside recording.mp4.

ScreenCaptureSession::stop stays instant and hands back a Movie that may still be finishing. Only the steps that read recording.mp4 wait for it, video_offset_ms comes from the movie's first frame on the host clock, and a discarded capture's bundle is removed only once the movie is done. Frames decoded past the capture's end (the held tail) are dropped. The router keeps capture.json in its first, light copy. Exclusion changes mid-recording go through Recording::set_exclusions.
2026-10-27 21:15:34 -07:00
..
helper capture: iPhone target narrated by Hex's microphone, and CaptureSnapshot.phone 2026-10-26 10:48:08 -07:00
src fix(capture): finish the screen recording before stopping it, via capture-core (#258) 2026-10-27 21:15:34 -07:00
build.rs Import scrawl-capture into crates/capture 2026-10-25 19:14:23 -07:00
Cargo.toml feat(capture-core): shared macOS screen-recording library (#255) 2026-10-27 20:08:40 -07:00