Expand description
open_in_editor — the Record→Edit handoff command (ED.5 / M-EDIT).
Probes a finished recording’s metadata and builds a fresh, untouched
[edit::EditProject] (one full-length real-time segment) for the
editor UI to load. The heavy lifting — the edit model itself — lives in
the pure edit crate; this is the thin Tauri wrapper.
Structs§
- Editor
Export State - Shared state for the editor export command (ED.22): a cooperative cancel flag plus a single-run guard so a second export can’t un-cancel the first and race the same output file.
- Export
Progress 🔒 editor-export-progressevent payload.- Export
RunGuard 🔒 - RAII guard releasing the single-export slot when an export finishes (on any return path, including error/panic).
- Recording
Entry - A recording in the library: its file path, display name, and whether a
saved
.screenprojsits beside it.
Functions§
- edited_
export_ path - Derive the export output path for
source+format: alongside the recordings folder, named<source-stem>-edited.<ext>so it never clobbers the source recording. Pure (no I/O) for testability. - editor_
export - Export the edited
projectto an.mp4, streamingeditor-export-progressevents and honoringeditor_export_cancel. Returns the output path. - editor_
export_ cancel - Request cancellation of an in-flight
editor_export. - editor_
load_ project - Load an editor project from a
.screenprojpath. - editor_
save_ project - Save
projectto its.screenproj(beside the source recording); returns the written path. - fps_
round 🔒 - Round a reported (possibly fractional / NTSC) frame rate to a whole fps, clamped to at least 1. Non-finite / non-positive rates fall back to 30.
- list_
recordings - List the recordings in the user’s output folder (newest first). Returns an empty list if the folder can’t be read.
- open_
in_ editor - Open a finished recording in the editor: probe it with
gst-discoverer-1.0and return a default [EditProject] (the recording, untouched, ready to edit). - project_
from_ metadata - Build a default editor project from a recording’s probed metadata.
- recording_
entries - Build library entries from a directory listing: each
.mp4becomes an entry, newest first (lexical-descending on the timestamped filename), flagged if a sibling.screenprojis present. Pure (no I/O). - screenproj_
path - The
.screenprojpath for asourcerecording: the source path with its extension swapped, so the project file sits beside the recording. Pure.