Unable to connect to camera AVD

浪子不回头ぞ 提交于 2019-12-25 09:08:04

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!