Android Emulator: Unable to start webcam to capture picture in emulator

后端 未结 5 1548
长发绾君心
长发绾君心 2021-02-03 19:54

I have created an armeabi API 21 emulator in the AVD manager in Android Studio, set it to use the webcam as a front camera, and launched it. The problem is that it\'s not able t

5条回答
  •  野的像风
    2021-02-03 20:21

    I had trouble getting the camera to work under the emulator (under linux), even after setting it up in AVD as instructed here. I was helped by noticing that the camera it was trying to use was /dev/video0, but the camera I wanted was /dev/video3. A quick swap...

    mv /dev/video0 /dev/video4
    mv /dev/video3 /dev/video0
    

    ...did the trick

    Change /dev/video6 into /dev/video0

提交回复
热议问题