Skip to content

Commit

Permalink
Disable by default orientation for capture and include it on recording
Browse files Browse the repository at this point in the history
  • Loading branch information
leoneparise committed May 15, 2016
1 parent 7e4f7ca commit 0e4df8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LLSimpleCamera/LLSimpleCamera.m
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ - (void)setupWithQuality:(NSString *)quality
_fixOrientationAfterCapture = NO;
_tapToFocus = YES;
_useDeviceOrientation = NO;
_useDeviceOrientationOnCapture = YES;
_useDeviceOrientationOnCapture = NO;
_flash = LLCameraFlashOff;
_mirror = LLCameraMirrorAuto;
_videoEnabled = videoEnabled;
Expand Down Expand Up @@ -384,7 +384,7 @@ - (void)startRecordingWithOutputUrl:(NSURL *)url
// get only the video media types
if ([[port mediaType] isEqual:AVMediaTypeVideo]) {
if([connection isVideoOrientationSupported]) {
[connection setVideoOrientation:[self orientationForConnection:false]];
[connection setVideoOrientation:[self orientationForConnection:true]];
}
}
}
Expand Down

0 comments on commit 0e4df8a

Please sign in to comment.