Skip to main content

start_camera_for_session

Function start_camera_for_session 

Source
fn start_camera_for_session(
    app: &AppHandle,
    preview_state: &PreviewState,
    camera_handle: &CameraPipelineHandle,
    camera_id: String,
) -> Result<(), CameraError>
Expand description

Direct-call equivalent of start_preview — bypasses the #[tauri::command] layer so the session orchestrator can coordinate with the existing PreviewState lifecycle.