LLSimpleCamera icon indicating copy to clipboard operation
LLSimpleCamera copied to clipboard

Recorded video in landscape mode is shown in wrong direction

Open jarnove opened this issue 10 years ago • 6 comments

When I record a video in landscape mode, the video is shown in the wrong direction (first image). It is shown correctly when I record in portrait (second image).

Also I do not have this problem when I capture a picture.

landscape wrong portrait correct

jarnove avatar Sep 30 '15 13:09 jarnove

I have the same problem.

yuyedaidao avatar Jan 05 '16 12:01 yuyedaidao

@yuyedaidao are you using the latest version 4.1 ?

omergul avatar Jan 05 '16 14:01 omergul

I will try,thx

yuyedaidao avatar Jan 07 '16 09:01 yuyedaidao

Fixed problem by replacing below lines at line number 245 in file LLSimpleCamera.m if([self.session canAddInput:_videoDeviceInput]) { [self.session addInput:_videoDeviceInput]; self.captureVideoPreviewLayer.connection.videoOrientation = AVCaptureVideoOrientationPortrait; }

sonalpaghadal avatar Jun 15 '17 10:06 sonalpaghadal

Still Getting Same issues. My requirement is that when record video in Horizontal direction(where App is in portrait mode) , recorded image should be in landscape mode

yogeshingole avatar Jul 18 '17 06:07 yogeshingole

Fixed problem by replacing below lines at line number 802 in file LLSimpleCamera.m

[[UIApplication sharedApplication] statusBarOrientation] to [[UIDevice currentDevice] orientation]

it's working Fine.

UdaySubbisetty avatar Jan 04 '18 10:01 UdaySubbisetty