Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: getSupportedPreviewSizes #664

Open
capc0 opened this issue Dec 16, 2021 · 0 comments
Open

Feature request: getSupportedPreviewSizes #664

capc0 opened this issue Dec 16, 2021 · 0 comments

Comments

@capc0
Copy link

capc0 commented Dec 16, 2021

In order to know which dimensions are supported for setPreviewSize, a function for getting the supported sizes would be needed. I tried getSupportedPictureSizes, but not all of them are supported as the preview size, and there is no way to tell if a valid picture size is also a valid preview size.

It seems like it once already existed, but was removed from the codebase? #199

Android https://developer.android.com/reference/android/hardware/Camera.Parameters#getSupportedPreviewSizes()

It is also already used internally, but not exposed https://github.com/cordova-plugin-camera-preview/cordova-plugin-camera-preview/blob/master/src/android/Preview.java#L55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant