I'm using the Apple's sample code for AVFoundation, here, https://developer.apple.com/library/ios/samplecode/AVCam/AVCam.zip
I've go through the many threads and beat my mind with google too but that doesn't help.
iPhone AVFoundation camera orientation
iOS AVFoundation Video Capture Orientation Options
Force camera view in landscape with orientation lock on
Orientation deprecated in iOS 6
Wired behaviour of UIImagePickerController while capturing photo this was my previous question for the same error but with UIImagePickerController
then I decide to use AVFoundation
functions.
See the (error) screenshot,
It started the camera in portrait and wrong camera preview.
Note, setting orientation in code doesn't help. That only rotated (wrongly) camera preview.
Any help/suggestion?