func start()

in depth-anything-example/DepthApp/Camera.swift [157:177]


    func start() async {
        let authorized = await checkAuthorization()
        guard authorized else {
            logger.error("Camera access was not authorized.")
            return
        }

        if isCaptureSessionConfigured {
            if !captureSession.isRunning {
                sessionQueue.async { [self] in
                    self.captureSession.startRunning()
                }
            }
            return
        }

        sessionQueue.async { [self] in
            guard self.configureCaptureSession() else { return }
            self.captureSession.startRunning()
        }
    }