Skip to content

Commit

Permalink
Use device orientation for recorded videos
Browse files Browse the repository at this point in the history
  • Loading branch information
flippinjoe authored and sjchmiela committed Nov 6, 2018
1 parent e23ba8b commit b6d577f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/EXCamera/EXCamera.m
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ - (void)record:(NSDictionary *)options resolve:(EXPromiseResolveBlock)resolve re
[connection setPreferredVideoStabilizationMode:self.videoStabilizationMode];
}
}
[connection setVideoOrientation:[EXCameraUtils videoOrientationForInterfaceOrientation:[[UIApplication sharedApplication] statusBarOrientation]]];
[connection setVideoOrientation:[EXCameraUtils videoOrientationForDeviceOrientation:[[UIDevice currentDevice] orientation]]];

EX_WEAKIFY(self);
dispatch_async(self.sessionQueue, ^{
Expand Down

0 comments on commit b6d577f

Please sign in to comment.