capacitor-camera-view 1.0.3 → 1.0.4

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.
@@ -119,7 +119,6 @@ class CameraView(plugin: Plugin) {
119
119
  }
120
120
 
121
121
  /** Capture a photo with the current camera configuration */
122
- @OptIn(ExperimentalZeroShutterLag::class)
123
122
  fun capturePhoto(quality: Int, callback: (String?, Exception?) -> Unit) {
124
123
  val startTime = System.currentTimeMillis()
125
124
  val controller =
@@ -412,7 +411,7 @@ class CameraView(plugin: Plugin) {
412
411
  (webView.parent as? ViewGroup)?.addView(previewView, 0)
413
412
  }
414
413
 
415
- @OptIn(ExperimentalCamera2Interop::class, ExperimentalZeroShutterLag::class)
414
+ @OptIn(ExperimentalCamera2Interop::class)
416
415
  private fun initializeCamera(
417
416
  context: Context,
418
417
  lifecycleOwner: LifecycleOwner,
@@ -443,7 +442,7 @@ class CameraView(plugin: Plugin) {
443
442
  val controller =
444
443
  LifecycleCameraController(context).apply {
445
444
  cameraSelector = currentCameraSelector
446
- imageCaptureMode = ImageCapture.CAPTURE_MODE_ZERO_SHUTTER_LAG
445
+ imageCaptureMode = ImageCapture.CAPTURE_MODE_MINIMIZE_LATENCY
447
446
  imageCaptureResolutionSelector =
448
447
  ResolutionSelector.Builder()
449
448
  .setAspectRatioStrategy(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capacitor-camera-view",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "A Capacitor plugin for embedding a live camera feed directly into your app.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",