@capgo/camera-preview 7.9.1 → 7.10.1

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.
@@ -180,6 +180,7 @@ public class CameraPreview
180
180
  }
181
181
  }
182
182
 
183
+ @PluginMethod
183
184
  public void getOrientation(PluginCall call) {
184
185
  int orientation = getContext()
185
186
  .getResources()
@@ -714,7 +714,9 @@ extension CameraController {
714
714
  captureSession.commitConfiguration()
715
715
  // Restart the session if it was running before
716
716
  if wasRunning {
717
- captureSession.startRunning()
717
+ DispatchQueue.global(qos: .userInitiated).async {
718
+ captureSession.startRunning()
719
+ }
718
720
  }
719
721
  }
720
722
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/camera-preview",
3
- "version": "7.9.1",
3
+ "version": "7.10.1",
4
4
  "description": "Camera preview",
5
5
  "license": "MIT",
6
6
  "repository": {