Skip to main content

Module editor_session

Module editor_session 

Source
Expand description

EditorSession — backend playhead state + transport for the editor (ED.7 / M-EDIT).

The editor’s clock is the native [EditorPlayer] (a pure frame-indexed clock). It lives here, in the Tauri backend, alongside the future preview window; the webview is a thin transport UI that sends TransportActions and renders the returned EditorStatusView.

Ticking follows EditorPlayer/Driver’s “host injects dt” model: while playing, the UI sends TransportAction::Tick from its animation loop and the clock advances by that dt. (When the native preview window lands it drives the same tick + renders the frame at current_frame.)

Structs§

EditorSession
The editor’s playhead clock for one open clip.
EditorSessionState
Tauri-managed editor session state. None until a clip is opened.
EditorStatusView
Serializable snapshot of the editor playhead for the transport UI.

Enums§

TransportAction
A transport command from the UI. Enum-dispatched through the single editor_transport command so registration stays a one-liner.

Functions§

editor_transport
Apply a transport action to the active editor session. Returns None when no clip is open.