I want to check if the iPhone the user has supports full HD video capturing. I found out, that I should ask the AV session, if
avSession = [[AVCaptureSession alloc] init];
[avSession beginConfiguration];
if ([avSession canSetSessionPreset:AVCaptureSessionPreset1920x1080]) {
avSession.sessionPreset = AVCaptureSessionPreset1920x1080;
NSLog(@"FULLHD");
} else {
avSession.sessionPreset = AVCaptureSessionPreset1280x720;
NSLog(@"HDREADY");
}
[avSession commitConfiguration];
This works fine on iPhone 5 (which indeed supports full HD capturing), but on iPhone 4 tries too to set the preset, but clearly fails. What am I doing wrong?
Thanks in advance, Matthias