Android: How to use webcam in emulator?

后端 未结 4 424
故里飘歌
故里飘歌 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 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.

提交回复
热议问题