(
&self,
id: &str,
config: CameraConfig,
)
| 68 | } |
| 69 | |
| 70 | fn open( |
| 71 | &self, |
| 72 | id: &str, |
| 73 | config: CameraConfig, |
| 74 | ) -> Result<(Box<dyn Stream>, DeviceControls), CameraError> { |
| 75 | let stream = stream::AvfStream::new(id, config) |
| 76 | .map_err(|e| CameraError::Io(std::io::Error::other(e)))?; |
| 77 | let controls = create_dummy_controls(); |
| 78 | Ok((Box::new(stream), controls)) |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | fn create_dummy_controls() -> DeviceControls { |
no test coverage detected