Skip to main content

build_stream_health_snapshot

Function build_stream_health_snapshot 

Source
fn build_stream_health_snapshot(
    app: &AppHandle,
    streams: SessionStreams,
    _started_at: Instant,
) -> Vec<StreamHealth>
Expand description

Build the per-stream StreamHealth snapshot by querying each enabled channel’s existing State<> handle. Called by both recording_status (live polling) and stop_recording (final summary). last_frame_ms_ago is left None for now — the per-channel handles don’t yet expose a last_frame_at timestamp (TODO M-RECORD-EXPORT follow-up; M-RECORD.2’s LED ramp already handles None as “no recent frame, render yellow/red based on session age”).