Skip to content

Commit 0e4df8a

Browse files
committed
Disable by default orientation for capture and include it on recording
1 parent 7e4f7ca commit 0e4df8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LLSimpleCamera/LLSimpleCamera.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ - (void)setupWithQuality:(NSString *)quality
7474
_fixOrientationAfterCapture = NO;
7575
_tapToFocus = YES;
7676
_useDeviceOrientation = NO;
77-
_useDeviceOrientationOnCapture = YES;
77+
_useDeviceOrientationOnCapture = NO;
7878
_flash = LLCameraFlashOff;
7979
_mirror = LLCameraMirrorAuto;
8080
_videoEnabled = videoEnabled;
@@ -384,7 +384,7 @@ - (void)startRecordingWithOutputUrl:(NSURL *)url
384384
// get only the video media types
385385
if ([[port mediaType] isEqual:AVMediaTypeVideo]) {
386386
if([connection isVideoOrientationSupported]) {
387-
[connection setVideoOrientation:[self orientationForConnection:false]];
387+
[connection setVideoOrientation:[self orientationForConnection:true]];
388388
}
389389
}
390390
}

0 commit comments

Comments
 (0)