Skip to main content

connect_to_cameras_with_watcher

Function connect_to_cameras_with_watcher 

Source
pub async fn connect_to_cameras_with_watcher(
    service_context: &ServiceContext,
    external_publisher: ExternalEventPublisher,
) -> Result<(CameraWatcherProxy, Vec<(u64, DeviceProxy)>), Error>
Expand description

Like connect_to_cameras, but also returns the camera device watcher connection, which can be used to watch for cameras that are added or removed later, and the id of each camera.