capacitor-community-multilens-camerapreview 7.1.2 → 7.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -291,10 +291,11 @@ extension CameraController {
|
|
|
291
291
|
|
|
292
292
|
captureSession.commitConfiguration()
|
|
293
293
|
|
|
294
|
-
// Restart the capture session
|
|
295
294
|
captureSession.startRunning()
|
|
296
295
|
|
|
297
|
-
|
|
296
|
+
DispatchQueue.main.async {
|
|
297
|
+
self.updateVideoOrientation()
|
|
298
|
+
}
|
|
298
299
|
}
|
|
299
300
|
func setCameraLens(lens: String) throws {
|
|
300
301
|
guard let captureSession = self.captureSession, captureSession.isRunning else {
|
|
@@ -342,7 +343,9 @@ extension CameraController {
|
|
|
342
343
|
captureSession.commitConfiguration()
|
|
343
344
|
captureSession.startRunning()
|
|
344
345
|
|
|
345
|
-
|
|
346
|
+
DispatchQueue.main.async {
|
|
347
|
+
self.updateVideoOrientation()
|
|
348
|
+
}
|
|
346
349
|
}
|
|
347
350
|
|
|
348
351
|
func setZoom(zoomFactor: CGFloat) throws {
|
|
@@ -368,7 +371,9 @@ extension CameraController {
|
|
|
368
371
|
throw CameraControllerError.invalidOperation
|
|
369
372
|
}
|
|
370
373
|
|
|
371
|
-
|
|
374
|
+
DispatchQueue.main.async {
|
|
375
|
+
self.updateVideoOrientation()
|
|
376
|
+
}
|
|
372
377
|
}
|
|
373
378
|
|
|
374
379
|
func captureImage(completion: @escaping (UIImage?, Error?) -> Void) {
|
package/package.json
CHANGED