title: Set maximum frame rate with AVFoundation in iOS 5
body: <p>I believe this used to be done with <code>captureOutput.minFrameDuration</code>. However, this is deprecated in iOS 5.</p>
  
  <p>Instead I apparently need to use <code>AVCaptureConnection</code>'s <code>video.minFrameDuration</code>. 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?</p>
  
  <p>I could try adding the I/O using <code>addInputWithNoConnections</code> and <code>addOutputWithNoConnections</code> 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 that these methods don't exist.</p>