The iPhone 5S is capable of taking pictures while recording video and I am trying to figure out how I would do this programatically. I know I would be utilizing AVFoundation, however, I couldn't find anything in the programming guide regarding this. I have also checked the sample projects (AVFoundation-related) and it doesn't look like there is anything there that does what I am looking for. if you could help point me in the right direction that would be great.
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- back button text does not change
相关文章
- 现在使用swift开发ios应用好还是swift?
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- xcode 4 garbage collection removed?
- Unable to process app at this time due to a genera
- How can I add media attachments to my push notific
- How do you detect key up / key down events from a
- “Storyboard.storyboard” could not be opened
Through AVCaptureSession you can easily achieve iPhone 5S in the camera app functionality. In your view touch event:
You can get current frame on above delegate method and save it in your gallery.
Please go through below link:
https://developer.apple.com/library/ios/samplecode/RosyWriter/Introduction/Intro.html
Actually you can do it with any device that can record video:
AVCaptureVideoDataOutput
.AVCaptureSession
.AVCaptureVideoDataOutputSampleBufferDelegate
.captureOutput:didOutputSampleBuffer:fromConnection:
in the delegate and get the image withimageFromSampleBuffer:
.Some similar code can be found here, where images are captured at a given interval, but you only want one image.
In iOS7 there has a new api to capture UIView, we can get image and do something.
eg:
Apple's Document: drawViewHierarchyInRect:afterScreenUpdates:
I agree with Rivera's answer ! You are going to need AV
And this is how I do it after the hole AV stuff
if you want to see the hole sample np. I will upload my class