Skip to main content

find_by_id

Function find_by_id 

Source
pub fn find_by_id(id: &str) -> Option<CameraDevice>
Expand description

Locate the CameraDevice whose stable id matches id by re-probing the OS via list_cameras. Used by super::gstreamer_video::GstreamerVideoCapture::from_camera to resolve the picker’s camera id back to its OS-native source element on every recording start (M-CAM.4). Returns None when the camera has been unplugged since enumeration.