Skip to main content

snapshot_live_raw

Function snapshot_live_raw 

Source
pub async fn snapshot_live_raw(
    state: &AppState,
    camera_id: &str,
) -> AppResult<Vec<u8>>
Expand description

Reusable inner that captures one live frame and returns the raw JPEG bytes. Backs the public snapshot_live handler path and is reused by the snapshot scheduler. Identical behaviour; kept as a distinct entry point so background callers don’t depend on the route-facing wrapper.