capacitor-community-multilens-camerapreview 0.0.9 → 0.0.10
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.
|
@@ -315,6 +315,19 @@ extension CameraController {
|
|
|
315
315
|
captureSession.addInput(self.rearCameraInput!)
|
|
316
316
|
self.currentCameraPosition = .rear
|
|
317
317
|
}
|
|
318
|
+
|
|
319
|
+
do {
|
|
320
|
+
guard let device = self.currentCameraPosition == .rear ? rearCamera : frontCamera else { return }
|
|
321
|
+
|
|
322
|
+
try device.lockForConfiguration()
|
|
323
|
+
defer { device.unlockForConfiguration() }
|
|
324
|
+
|
|
325
|
+
device.videoZoomFactor = 1.0
|
|
326
|
+
zoomFactor = device.videoZoomFactor
|
|
327
|
+
|
|
328
|
+
} catch {
|
|
329
|
+
debugPrint(error)
|
|
330
|
+
}
|
|
318
331
|
}
|
|
319
332
|
|
|
320
333
|
func captureImage(completion: @escaping (UIImage?, Error?) -> Void) {
|
package/package.json
CHANGED