fix: Fix outputOrientation
Main Thread API checker (#1094)
This commit is contained in:
parent
096b1cca4e
commit
04a8794246
@ -44,6 +44,7 @@ extension CameraView {
|
||||
|
||||
self.videoPreviewLayer.connection?.setInterfaceOrientation(self.inputOrientation)
|
||||
|
||||
let connectionOrientation = self.outputOrientation
|
||||
self.cameraQueue.async {
|
||||
// Run those updates on cameraQueue since they can be blocking.
|
||||
self.captureSession.outputs.forEach { output in
|
||||
@ -52,7 +53,7 @@ extension CameraView {
|
||||
connection.automaticallyAdjustsVideoMirroring = false
|
||||
connection.isVideoMirrored = isMirrored
|
||||
}
|
||||
connection.setInterfaceOrientation(self.outputOrientation)
|
||||
connection.setInterfaceOrientation(connectionOrientation)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user