google / cameraview

[DEPRECATED] Easily integrate Camera features into your Android app
Apache License 2.0
4.74k stars 1.03k forks source link

Aspect Ratio option not working #152

Open anantprsd5 opened 7 years ago

anantprsd5 commented 7 years ago

When trying to change the aspect ratio, the camera screen turns black just like the below screenshot. photo_2017-05-12_21-49-26

Neither of the aspect ratios listed are working and the screen turns black in every case.

Device : LeEco Le 2 Android version : Marshmallow 6.0

cybercitizen7 commented 7 years ago

Hey Anantprsd5,

Are you setting one of the available Aspect Ratios for your mobile phone? Could you maybe also share some code with your issue.

anantprsd5 commented 7 years ago

@dk1206 Yes. I am using the demo application of the camera view and when I click on the menu to change the aspect ratio, I am getting a black screen like the screenshot below. photo_2017-05-12_21-49-26

Android version - 6.0

cybercitizen7 commented 7 years ago

I cannot reproduce it with my phone, for me it works. But that is rather curious aspect ratio you have btw.

If you can edit your initial message, please add the also the Mobile phone model you are using and also write there the OS version.

anantprsd5 commented 7 years ago

@dk1206 Done. Thanks.

aalices commented 7 years ago

The same issue for Xiaomi Redmi 4A, Android: 6.0.1 but this: https://github.com/google/cameraview/issues/111#issuecomment-288986182 solved the issue in my case