Skip to main content

list_cameras

Function list_cameras 

Source
pub fn list_cameras() -> Vec<CameraView>
Expand description

Enumerate attached cameras (M-CAM.2 / AUT-256).

Wraps media::list_cameras() and converts each CameraDevice to a CameraView. Returns an empty Vec (not an error) if gst-device-monitor-1.0 isn’t on PATH or no cameras are attached — Leptos consumers should runtime-skip in that case.