capacitor-community / capacitor-community/camera-preview

Preview not resized and displayed correctly when orientation changes

Open
#93 17 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
227
Forks
185
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Camera preview is not resized and displayed correctly when changing device's orientation.

**To Reproduce**
Steps to reproduce the behavior:
1. Start the camera with the device in portrait
2. Rotate the device to landscape

**Expected behavior**
Displayed preview should be resized according to landscape as it would be if the camera was started with the device in landscape.

**Screenshots**
[Current portrait](https://i.ibb.co/hWg8M6r/Screenshot-1612810016.png)
[Current when changed to landscape](https://i.ibb.co/QDZP65G/Screenshot-1612810023.png)
[Current when started in landscape](https://i.ibb.co/MsBBypY/Screenshot-1612809972.png)

**Smartphone (please complete the following information):**
- Device: Pixel 3 XL
- OS: Android
- Version: API R

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.