Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

Setter of MediaDeviceQuery.previewResolution does not work correctly. #15

Closed
acttoz opened this issue Oct 27, 2022 · 1 comment
Closed
Labels
question Further information is requested

Comments

@acttoz
Copy link

acttoz commented Oct 27, 2022

`
var query = new MediaDeviceQuery(MediaDeviceCriteria.FrontCamera);
cameraDevice = query.current as CameraDevice;
cameraDevice.previewResolution = (600, 270);

`
My code is as above.

But android logcat says:
2022-10-27 16:36:46.601 31143 31171 Debug NatML CameraDevice 1 preview resolution set to (640,360)

Why it says this difference?

@olokobayusuf olokobayusuf added the question Further information is requested label Oct 27, 2022
@olokobayusuf
Copy link
Contributor

This is working as expected. Camera devices support a fixed set of resolutions, so when you set a previewResolution or photoResolution, what NatDevice does is find a supported resolution closest to what you requested.

@olokobayusuf olokobayusuf closed this as not planned Won't fix, can't repro, duplicate, stale Oct 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants