Brett
Brett

Reputation: 12007

iPhone video capture (best method)

I am curious about the new APIs for iPhone iOS: AVCapture... Does this include a documented way to grab a screenshot of the camera preview? The doc seems a bit confusing to me, and since it is out of NDA now, I thought I would post my question here. Many thanks, Brett

Upvotes: 2

Views: 1859

Answers (1)

Daniel
Daniel

Reputation: 22395

With AVFoundation you can grab photos from the camera session...The way it works is you use one of the subclasses of AVCaptureOutput in order to get what you need, for still images you are going to want to use the AVCaptureSTillImageOutput subclass, here is a link AVCaptureStillImageOutput ref. Besides that you also have AVCaptureMovieFileOutput which is used to record a quicktime movie from the capture session to a file, AVCaptureVideoDataOutput which allows you to intercept uncompressed individual frames from the capture session, you also have audio outputs which you can use as well...hope this helps

Upvotes: 2

Related Questions