1

Vs2017, Xamarin app, in emulator, I want webcam to be emulators camers, Android at the moment but will need IOS and UWP as well.

I've set the camera permissions in the apps, the emulated camera works fine.

I added the property hw.camera = true and hw.camera.front and hw.camera.back are both set to webcam0

my webcam is added and works

How do I get the emulator (in this case android) to see my webcam as the camera?

I can find "answers" for Android studio, and Xamarin studio, but am unable to figure out how to apply them to visual studio 2017.

enter image description here

Eric Brown - Cal
  • 14,135
  • 12
  • 58
  • 97
  • Did you used webcam in labtop or connected by USB? You can set `hw.camera.back` to webcam0, `hw.camera.front` to emulated, do not set the same result for back and front – Leon May 16 '19 at 06:30
  • if I set one , front or back to webcam0, and the other to emulated, I get the emulated camera, if I set either of webcam0 and the other to none, I get the same error, that says the camera can't be accessed. what am I missing to get the camera over usb to work? Thanks, – Eric Brown - Cal May 16 '19 at 18:28
  • Leon, I tried the Xamarin camera sample and it does the same thing. Is there a walkthrough with the steps to set up the web cam to work properly as a camera in the Xamarin Vs2017 emulator? – Eric Brown - Cal May 17 '19 at 16:24
  • Did you clear the Camera's app's cache & data then re-boot the eumlator? My laptop have third-part software to close the camera. – Leon May 20 '19 at 07:00
  • where is the cameras app cache? – Eric Brown - Cal May 22 '19 at 19:34
  • Open the app info like this image https://imgur.com/a/45YPmzA, can you use this webcam in android studio? Firstly, you could makes emulator of android studio to use the webcam, then run this emulator in VS. If you could use emulator in android studio, you can try to set the same SDK folder, as long as VS and AS is using the same SDK folder, AS could use webcam, VS should use it normally. – Leon May 23 '19 at 09:11
  • Okay, how do I make the webcam work in Android studio? – Eric Brown - Cal May 23 '19 at 19:39
  • First of all you could install AS.To exclude SDK issue, please set AS use another SDK ,If the emulator cannot use webcam, you can refer to this linkhttps://stackoverflow.com/questions/44699625/make-android-emulator-use-physical-usb-camera/44737436#44737436 – Leon May 28 '19 at 01:30

0 Answers0