Record Videos | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/21460315-video-with-avfoundation/lessons/8

line 146 should read: if device.isSmoothAutoFocusSupported {

You said the correct thing but auto focus got you just like spell check gets me when I test a message. :slight_smile:

While recording if you hit the ‘switch camera’ button in the top right hand corner it causes an exception to be thrown and nothing gets saved. Just an FYI but that button should be removed for this example?

The only error I see is with the AVCaptureFileOutputRecordingDelegate when it saves it but it’s going off the rails when we run this line of code in switchCamera()
captureSession.removeInput(activeInput)

Sorry for being type A. Still a great example. Thanks for doing this.