pub trait VideoCapturePort: Send + Sync {
// Required method
fn open(
&self,
path: &Path,
backend: Backend,
) -> Result<Box<dyn VideoStream>, VideoCaptureError>;
}Expand description
Opens video sources and produces VideoStream instances.
Required Methods§
Sourcefn open(
&self,
path: &Path,
backend: Backend,
) -> Result<Box<dyn VideoStream>, VideoCaptureError>
fn open( &self, path: &Path, backend: Backend, ) -> Result<Box<dyn VideoStream>, VideoCaptureError>
Open the given path/URL with the chosen backend.