capacitor-plugin-camera-forked 3.0.44 → 3.0.55

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.
@@ -572,6 +572,15 @@ public class CameraPreviewPlugin: CAPPlugin, AVCaptureVideoDataOutputSampleBuffe
572
572
 
573
573
  facingBack = false
574
574
  }
575
+
576
+ // Reset video connection orientations after camera switch to prevent rotation issues
577
+ if let connection = self.previewView.videoPreviewLayer.connection {
578
+ connection.videoOrientation = .portrait
579
+ }
580
+ if let videoConnection = self.videoOutput.connection(with: .video) {
581
+ videoConnection.videoOrientation = .portrait
582
+ }
583
+
575
584
  if isRunning {
576
585
  self.captureSession.startRunning()
577
586
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capacitor-plugin-camera-forked",
3
- "version": "3.0.44",
3
+ "version": "3.0.55",
4
4
  "description": "A capacitor camera plugin - A custom Capacitor camera plugin with additional features.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",