1 | initial version |
What device are you running this on? I ran into the same problem when running it on my iPhone 3GS. I believe the problem is that it's trying to access the "front" camera when my phone doesn't have one. So this line:
self.videoCamera.defaultAVCaptureDevicePosition = AVCaptureDevicePositionFront;
Needs to change to:
self.videoCamera.defaultAVCaptureDevicePosition = AVCaptureDevicePositionBack;
And if that doesn't help, try changing the session preset to something more generic, like AVCaptureSessionPresetMedium.
HTH!