fix: Set sensorOrientation to landscapeRight

This commit is contained in:
Marc Rousavy 2023-10-19 17:02:07 +02:00
parent 993b9f5a37
commit 00718ea0ee
No known key found for this signature in database
GPG Key ID: 8B9C709EA0B16A6D

View File

@ -27,7 +27,9 @@ extension AVCaptureDevice {
"supportsLowLightBoost": isLowLightBoostSupported, "supportsLowLightBoost": isLowLightBoostSupported,
"supportsFocus": isFocusPointOfInterestSupported, "supportsFocus": isFocusPointOfInterestSupported,
"hardwareLevel": "full", "hardwareLevel": "full",
"sensorOrientation": Orientation.landscapeLeft.jsValue, // TODO: Get orientation from `AVCaptureDevice.RotationCoordinator`, then just transform `AVAssetWriter`
// See https://github.com/mrousavy/react-native-vision-camera/issues/2046
"sensorOrientation": Orientation.landscapeRight.jsValue,
"formats": formats.map { $0.toJSValue() }, "formats": formats.map { $0.toJSValue() },
] ]
} }