草庐IT

videoCaptureOutput

全部标签

ios - 在 Swift 中,改编了 AVCaptureVideoDataOutputSampleBufferDelegate,但从未调用 captureOutput

我正在尝试从相机捕获视频帧并在UIImageView上实时显示大量图像。我尝试为我的viewcontroller调整AVCaptureVideoDataOutputSampleBufferDelegate。我还实现了captureOutput,但是captureOutput从未被调用。这是我的代码:importUIKitimportAVFoundationclassViewController:UIViewController,AVCaptureVideoDataOutputSampleBufferDelegate{@IBOutletweakvarimageView:UIImageVi