2

Here's my code:

func captureOutput(_ output: AVCaptureOutput, 
     didOutput sampleBuffer: CMSampleBuffer, 
            from connection: AVCaptureConnection) {

    guard CMSampleBufferDataIsReady(sampleBuffer) else { return }

    // This is the delegate method for 
    // AVCaptureVideoDataOutputSampleBufferDelegate and 
    // AVCaptureAudioDataOutputSampleBufferDelegate  
}

I'm trying to use Vision framework and draw a layer over eyes where I got the success. However I want to record the same.

Andy Jazz
  • 49,178
  • 17
  • 136
  • 220
Tushar Katyal
  • 412
  • 5
  • 12

0 Answers0