Set maximum frame rate with AVFoundation in iOS 5
I believe this used to be done with captureOutput.minFrameDuration . However, this is deprecated in iOS 5. Instead I apparently need to use AVCaptureConnection 's video.minFrameDuration . So I have my input, my output, I add them both the the capture session - where can I get access to the capture connection? I think it is created for me by the session, but where? I could try adding the I/O using addInputWithNoConnections and addOutputWithNoConnections and then maybe creating the connection manually. But this seems like a bit of hassle just to set a maximum frame rate. Plus, Xcode complains