Module capture_ui

Source
Expand description

Screen recording + voiceover windows (both non-modal, both keep the editor usable).

Screen recorder: output folder, fps, bitrate (or CRF), area (Whole desktop / a Region typed in desktop pixels), microphone combo (engine::capture::audio_devices), desktop audio toggle, cursor toggle, and “Record when the editor loses focus” (auto start/stop) — the app watches focus and drives engine::capture. While recording: elapsed time, a stop button and a note that the file is imported into the library when it finishes. Both windows only ask: the app owns the running recording (and its output path) and imports the file itself when it stops.

Voiceover: input device, channels, a level meter, “Record from the playhead” (playback rolls while recording, so the take lines up), stop → the WAV is imported and placed on an audio track at the start time, with a “Retake” that deletes the last take and records again.

Structs§

CaptureResponse
What the app should do this frame.
CaptureUi

Constants§

AREAS 🔒

Functions§

capture_dir
Where recordings go: the configured folder, else the user’s Videos folder, else the temp dir.
clock 🔒
“M:SS” — recordings are minutes long, not hours.
meter 🔒
Flat input-level bar (green → the accent colour as it approaches clipping).
out_path 🔒
screen_options 🔒
The options the recorder should run with (the region only applies in “region” mode).
screen_window 🔒
show
voice_options 🔒
The options a voiceover take should run with.
voice_window 🔒