diff --git a/app/src/main/java/com/codigoparallevar/minicards/parts/android/CameraStreamer.java b/app/src/main/java/com/codigoparallevar/minicards/parts/android/CameraStreamer.java index 9bf4d6b..9aff9b7 100644 --- a/app/src/main/java/com/codigoparallevar/minicards/parts/android/CameraStreamer.java +++ b/app/src/main/java/com/codigoparallevar/minicards/parts/android/CameraStreamer.java @@ -377,6 +377,7 @@ public class CameraStreamer implements Part { public void onConfigured(@NonNull CameraCaptureSession session) { try { CaptureRequest.Builder requestBuilder = session.getDevice().createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); + requestBuilder.set(CaptureRequest.JPEG_ORIENTATION, mCameraCharacteristics.get(CameraCharacteristics.SENSOR_ORIENTATION)); requestBuilder.addTarget(surface); //set to null - image data will be produced but will not receive metadata session.setRepeatingRequest(requestBuilder.build(), null, CameraStreamer.this._handler);