I am trying to record video in my iPhone app using AVFoundation. But whenever I click the Record button app crashes with this message
-[AVCaptureMovieFile
I find the reason of this error. check your session's "setSessionPreset" setting, photo's resolution setting is different from video, for iPhone5, video resolution of the back camera is 1920*1080, the front camere is 1280*720, and photo's max resolution is 3264*2488, so if you set error resolution to video, the connect will not be actived.