Multi-camera smartphones choice the regular lens
Closed this issue · 4 comments
I have a phone with multiple rear cameras,and try with the demo it's use the wrong lens ,like a telescope lens,my phone is HUAWEI mate 20pro it‘’s use the 3x lens.
So is that possible to select the regular lens ?
Hi @jamess922 are you seeing this on all demos, or just a specific one? In our most recent 13.1 release, we specifically added fixes for the Huawei Mate 20 Pro (model LYA-L09) and Huawei P20 Pro so they would select the correct camera. Check your project settings -> engine version to make sure you aren't locked to an older engine version.
If that doesn't help, I wonder if your phone is returning a different model number or user-agent string. Can you please collect the following info from your device?
-
Browse to https://webrtc.github.io/samples/src/content/devices/input-output/ and note the list of cameras detected
-
http://faisalman.github.io/ua-parser-js/ and collect the User-agent string for your browser. It will say "Result for XXXXXXXXXX (User-Agent string of your browser)"
Thanks!
Interesting, it looks as if the Mate 20 Pro has 6 different models numbers. Check out https://www.phonemore.com/models/huawei/mate-20-pro/
On these devices getUserMedia by default returns the telephoto camera. We can override this on our end for specific phones like this. We'll implement the same workaround for these additional Mate 20 Pro model numbers. Thanks for providing this info.
Closing old ticket. This was resolved in late-2019 and engine was updated early 2020 to include this fix.