Skip to main content

default_camera_available

Function default_camera_available 

Source
pub fn default_camera_available() -> bool
Expand description

Best-effort probe for “is there at least one video capture device the OS will hand us?” (M-CAM.0 / AUT-254).

Spawns gst-device-monitor-1.0 Video/Source with a short timeout and parses the output for at least one device line. Returns false if the binary isn’t on PATH, returns false if no devices are listed — never panics. Integration tests use this to skip cleanly on a host without a webcam.