Access Microsoft Surface Pro4 rear camera

0 votes
asked Apr 7, 2018 by renaud (340 points)
Hi all,

I've been trying to access the rear camera of a Microsoft Surface tablet. My camera device type is set to "Back" in the editor. With version 3, no problem. With Surface Pro 4 however, the video stream comes always from the front camera. If I display the " ARBuilder.Instance.CameraDeviceBehaviours[0].CameraDeviceType" it says "BACK" but the video stream comes from the front. Does anybody have a solution to access the rear camera?

Thanks

2 Answers

0 votes
answered Apr 9, 2018 by renaud (340 points)
 
Best answer
As a matter of fact, answer was a bit more complicated than just reading the documentation. After some testing, I realized that Microsoft Surface 3 and Microsoft Surface Pro 4 had not the same definition for BACK and FRONT camera!

If I use "Front" for my CameraDeviceType, Surface3 is indeed using the Front camera while Surface Pro 4 is using the Back camera. If I use "Back", it is the opposite. Not that obvious  but problem solved!!!
0 votes
answered Apr 7, 2018 by albert52 (31,850 points)
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...