Android: How to use webcam in emulator?

后端 未结 4 390
故里飘歌
故里飘歌 2020-11-30 01:34

I\'m connecting a webcam to my emulator by setting the front camera to \"webcam0\" in the AVD Manager. When I start the emulator\'s camera application, I get the error

相关标签:
4条回答
  • 2020-11-30 01:57

    Follow the below steps in Eclipse.

    1. Goto -> AVD Manager
    2. Create/Edit the AVD.
    3. Hardware > New:
    4. Configures camera facing back
    5. Click on the property value and choose = "webcam0".
    6. Once done all the above the webcam should be connected. If it doesnt then you need to check your WebCam drivers.

    Check here for more information : How to use web camera in android emulator to capture a live image?

    enter image description here

    0 讨论(0)
  • 2020-11-30 02:02

    I suggest you to look at this highly rated blog post which manages to give a solution to the problem you're facing :

    http://www.inter-fuser.com/2009/09/live-camera-preview-in-android-emulator.html

    His code is based on the current Android APIs and should work in your case given that you are using a recent Android API.

    0 讨论(0)
  • 2020-11-30 02:05

    UPDATE

    In Android Studio AVD:

    1. Open AVD Manager:

    AVD menu

    1. Add/Edit AVD:

    Specific AVD strip

    1. Click Advanced Settings in the bottom of the screen:

    AVD Advanced Settings

    1. Set your camera of choice as the front/back cameras:

    AVD Camera Settings

    0 讨论(0)
  • 2020-11-30 02:12

    I would suggest checking the drivers and updating them if required.

    0 讨论(0)
提交回复
热议问题