rubaiyat6370 / iOS-Tutorial

9 stars 9 forks source link

Orientation issue in front camera video recording #1

Open bnsy opened 4 years ago

bnsy commented 4 years ago

Hello @rubaiyat6370 -

In front camera, video recording video is rotated 180 degrees.

When recording in landscape mode.

Can you please check and suggest the solution?

It's urgent.

rubaiyat6370 commented 4 years ago

Thanks for sharing. I will look into it. Since you have urges, you can look into the video orientation which I set to "portrait". If you want dynamic orientation according to the device orientation, then you have to set AVCaptureConnection. connection.orientation in the CameraConfiguration.swift line 182 when notification received. Lets see if it works.

bnsy commented 4 years ago

Thanks for sharing. I will look into it. Since you have urges, you can look into the video orientation which I set to "portrait". If you want dynamic orientation according to the device orientation, then you have to set AVCaptureConnection. connection.orientation in the CameraConfiguration.swift line 182 when notification received. Lets see if it works.

This won't help, as it only handles preview layer orientation. Not the output video.