我正在使用AVCaptureScreenInput在Mac上尝试屏幕捕获,但从未调用AVCaptureVideoDataOutput委托(delegate)captureOutput,我不确定为什么。我确实收到一条通知,说明捕获session已开始。importCocoaimportAVFoundationclassViewController:NSViewController,AVCaptureVideoDataOutputSampleBufferDelegate{varcaptureSession:AVCaptureSession!overridefuncviewDidLoad()