mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 09:48:17 +00:00
Merge pull request #1595 from instructure/ios-get-video-orientation-from-device-2
Base Video Orientation on Device Orientation - IOS
This commit is contained in:
commit
c3696c5420
@ -416,7 +416,7 @@ static NSDictionary *defaultFaceDetectorOptions = nil;
|
||||
[self updateSessionAudioIsMuted:!!options[@"mute"]];
|
||||
|
||||
AVCaptureConnection *connection = [self.movieFileOutput connectionWithMediaType:AVMediaTypeVideo];
|
||||
[connection setVideoOrientation:[RNCameraUtils videoOrientationForInterfaceOrientation:[[UIApplication sharedApplication] statusBarOrientation]]];
|
||||
[connection setVideoOrientation:[RNCameraUtils videoOrientationForDeviceOrientation:[[UIDevice currentDevice] orientation]]];
|
||||
|
||||
if (options[@"codec"]) {
|
||||
AVVideoCodecType videoCodecType = options[@"codec"];
|
||||
|
Loading…
x
Reference in New Issue
Block a user