问题
I am trying to use my laptop's webcam in my android virtual device. however everytime I start the device I get error message as -
emulator: ERROR: cmd_camera_device_start_capturing: Unable to set video format: 0
My config.ini file for the device looks like -
hw.camera=yes
hw.camera.back=webcam0
hw.camera.front=webcam0
First line I added after reading upon some blog, however it doesn't work without first line also.
PS: Webcam flashes couple of times and them it gives this error. Although the android device loads up but camera app doesn't function mentioning "Can't connect to camera service".
Also... simulated camera works.
Any suggestions.
EDIT Already done suggested changes as per Android Emulator not using webcam in Android Studio still no success.
来源:https://stackoverflow.com/questions/43848737/unable-to-connect-to-camera-avd