Android模拟器无法打开/连接真实的网络摄像头 [英] Android Emulator unable to open/connect with real webcam

查看:608
本文介绍了Android模拟器无法打开/连接真实的网络摄像头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

事件日志中的错误消息:

Emulator: emulator: ERROR: cmd_camera_device_start_capturing: Unable to set video format: 0

Emulator: emulator: ERROR: _camera_client_start: Cannot start camera 'AndroidEmulatorVC0' for NV21[1280x720]: No error

仿真器配置:

config.ini

config.ini

AvdId=Pixel_2_XL_API_27
PlayStore.enabled=false
abi.type=x86
avd.ini.displayname=Pixel 2 XL API 27
avd.ini.encoding=UTF-8
disk.dataPartition.size=800M
fastboot.forceColdBoot=no
hw.accelerometer=yes
hw.audioInput=yes
hw.battery=yes
hw.camera.back=emulated
hw.camera.front=webcam0
hw.cpu.arch=x86
hw.cpu.ncore=2
hw.dPad=no
hw.device.hash2=MD5:1a4fa6b2569f0b76bfb9824b6b6fc976
hw.device.manufacturer=Google
hw.device.name=pixel_2_xl
hw.gps=yes
hw.gpu.enabled=yes
hw.gpu.mode=auto
hw.initialOrientation=Portrait
hw.keyboard=yes
hw.lcd.density=560
hw.lcd.height=2880
hw.lcd.width=1440
hw.mainKeys=no
hw.ramSize=1536
hw.sdCard=no
hw.sensors.orientation=yes
hw.sensors.proximity=yes
hw.trackBall=no
image.sysdir.1=system-images\android-27\google_apis\x86\
runtime.network.latency=none
runtime.network.speed=full
sdcard.path=C:\Users\h193409\.android\avd\Pixel_2_XL_API_27.avd\sdcard.img
sdcard.size=1 GiB
showDeviceFrame=yes
skin.dynamic=yes
skin.name=pixel_2_xl
skin.path=C:\Android\Sdk\skins\pixel_2_xl
tag.display=Google APIs
tag.id=google_apis
vm.heapSize=256

观察:在模拟器中启动摄像头应用程序后,led灯开始在摄像头附近闪烁约10秒钟.

Observation: when starting camera app in the emulator then led light start blinking near webcam for approx 10 seconds.

网络摄像头可以与系统中的其他程序(如Skype,Chrome浏览器)完美配合

webcam works perfectly with other programs in the system like Skype, chrome browser

尝试了StackOverflow中提供的所有建议. Link1 Link2

Tried all the suggestions provided in StackOverflow. Link1 Link2

推荐答案

尝试sdcard.size=128M.使用sdcard.size=1 GiB时可能没有足够的内存.

Try sdcard.size=128M. There may not be enough memory while using sdcard.size=1 GiB.

这篇关于Android模拟器无法打开/连接真实的网络摄像头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆