iOS - Capture video in landscape while the device is in portrait mode

Viewed 1086

Is it possible to capture video in landscape while the device is in portrait mode?

something like this:
enter image description here

actually what i need is to capture in portrait but with width > height, i dont want the user to rotate the device, but i do want to capture a wider picture like in landscape mode.

just changing the preview layer frame to be wide (width>height) wont be enough of course.

i tried changing the video orientation of the preview layer, but that will rotate the picture, and thats not what i want.

previewLayer.connection.videoOrientation = .landscapeRight  

is that make any sense?

3 Answers
Related