I want to show multiple Camera view on a screen.But when i create two object of AVSession or imagepicker one grab camera and other show blank screen .
is there any way to show multiple camera views showing same feed ?
I want to show multiple Camera view on a screen.But when i create two
Share
If you want to show multiple views of the same feed, you need a single
AVSessionwith anAVCaptureVideoDataOutput.It’s pretty much as described here:
http://developer.apple.com/library/ios/#qa/qa1702/_index.html
When processing each video frame you will assign the image it contains to multiple
UIImageViews (orCALayers, if you prefer…) when handlingcaptureOutput:didOutputSampleBuffer:fromConnection:. That way you get multiple renderings of the same feed.See the AVCaptureVideoDataOutput Class Reference for more information. Also see pretty much any piece of sample code that uses
AVCaptureVideoDataOutputand simply tweakcaptureOutput:didOutputSampleBuffer:fromConnection:.