Skip to main content

VideoCapturePort

Trait VideoCapturePort 

Source
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§

Source

fn open( &self, path: &Path, backend: Backend, ) -> Result<Box<dyn VideoStream>, VideoCaptureError>

Open the given path/URL with the chosen backend.

Implementors§