Skip to main content

parse_device_monitor_output

Function parse_device_monitor_output 

Source
pub fn parse_device_monitor_output(text: &str) -> Vec<CameraDevice>
Expand description

Pure-Rust parser for gst-device-monitor-1.0 Video/Source text output. Split out from list_cameras so the parser is testable against captured fixtures without needing gst installed.

Captures (per device block): the name : ... line as label, and the gst-launch-1.0 <src-element> [<props>] ! ... example line as CameraDevice::gst_source (verbatim source-element tokens).