pvasa / cameraview-ex

Easy Android camera integration, advanced features.
Apache License 2.0
230 stars 49 forks source link

Stretched preview after camera switch within an activity with android:screenOrientation="portrait" #201

Closed J3y-S closed 5 years ago

J3y-S commented 5 years ago

Describe the bug Hello. I'm using your very nice to use Camera API in an activity with android:screenOrientation="portrait". When i start in portrait orientation and switch the camera after I've rotated the device to landscape orientation the preview ist totally stretched and wrong rotated.

To Reproduce

  1. Start Activity with android:screenOrientation="portrait" including CameraView (hold the device in portrait orientation)
  2. Rotate device to landscape
  3. Switch Camera

Expected behavior A non streched camera preview aber switching the camera

Using ProGuard

Screenshots Device in portrait mode works very good! Screenshot_20190813-123147

Device rotated to landscape and camera switch twice (to front and again to back camera) Screenshot_20190813-123233

I'm using the Version 3.4.3

pvasa commented 5 years ago

Hi @J3y-S, I would suggest updating to v3.5.4-alpha and check if you still see this issue. A lot of preview and capture sizes related issues were fixed in some recent releases. If not then we can investigate more.

pvasa commented 5 years ago

You can find complete changelog here.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 5 years ago

Closed due to inactivity.