mind-ar-js
mind-ar-js copied to clipboard
fix: too much zoom on multi camera devices for tracking
This PR solves issue #105, where multi camera devices has the default camera selected, which in case is too zoomed in. This doesn't break the camera usage for devices which doesn't have this issue.
@mateusmb Thanks for the PR. Can you help me understand what are you trying to fix?
I saw you are trying to select a camera with this label whenever possible: "camera2 0, facing back". What's the reason for doing that? Why "camera2 0, facing back" is the best camera?
@hiukim It's a bit of a hacky solution, there is no real answer for "why" as I understand. This is just try and error on Samsung and other multiple lenses phones.
See this issue for more details, as AR,js seems to have the same problem.
Hie @hiukim @Sov3rain @mateusmb
Please refer to this update on how to pick camera: https://github.com/hiukim/mind-ar-js/issues/105#issuecomment-1575478582
Closing this PR. thx all.