-
Hi everyone, For newer phones with multiple back cameras, AR.js would choose the default one, which in some phones it might be a zoomed camera, is there a way to detect the default zoom scale camera or ask user to choose the camera they want to display ? I have read from https://github.com/jeromeetienne/AR.js/pull/653: However, it seems like it's not working anymore? Or please clarify me if I'm wrong. Using the AR.js from master branch or official documentation, I have tested and Huawei p20's camera is zoomed in a lot, others are fine. Also, from https://github.com/jeromeetienne/AR.js/issues/369#issuecomment-562493560: Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Update: Basically, adding an extra file, the app.js from the github link and link it in your html file, and change the Add the following code in html file:
The rest should be working fine. However, in my case, i need to change:
to
Hope this help those people who are looking for changing back cameras in mobile phones. |
Beta Was this translation helpful? Give feedback.
Update:
I managed to create the camera-selection feature by refering to this github and this article.
Basically, adding an extra file, the app.js from the github link and link it in your html file, and change the
const video = document.getElementById('video');
toconst video = document.getElementById('arjs-video');
Add the following code in html file:
The rest should be working fine. However, in my case, i need to change: