fix: Set sensorOrientation
to landscapeRight
This commit is contained in:
parent
993b9f5a37
commit
00718ea0ee
@ -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() },
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user