I created AVCaptureVideoPreviewLayer in portrait mode, I want to know how to appears it in 16:9 ration(landscape aspect ratio) while holding in portrait mode
I tried:
1.Giving camera PreviewLayer 16:9 size but it appears as zoomed
2.I tried using videoPreviewLayer?.connection?.videoOrientation = AVCaptureVideoOrientation.landscape
here the resolution is perfect but it appears as rotate image (landscape camera)
I want to tilt the camera to portrait with landscape aspect ratio or portrait camera with landscape aspectRatio