首页 > 解决方案 > 使用网络摄像头的 Android 模拟器相机

问题描述

我正在尝试将我的网络摄像头用作 android 模拟器的摄像头。由于某种原因,它不起作用。我遵循了人们建议的所有内容,但仍然无法正常工作。请参阅下面的配置文件。

相机错误

安卓设置

AvdId=Pixel_5_API_27_test
PlayStore.enabled=false
abi.type=x86
avd.ini.displayname=Pixel 5 API 27_test
avd.ini.encoding=UTF-8
disk.dataPartition.size=800M
fastboot.chosenSnapshotFile=
fastboot.forceChosenSnapshotBoot=no
fastboot.forceColdBoot=yes
fastboot.forceFastBoot=no
hw.accelerometer=yes
hw.arc=false
hw.audioInput=yes
hw.battery=yes
hw.camera.back=webcam0
hw.camera.front=webcam0
hw.cpu.arch=x86
hw.cpu.ncore=4
hw.dPad=no
hw.device.hash2=MD5:3274126e0242a0d86339850416b0ce34
hw.device.manufacturer=Google
hw.device.name=pixel_5
hw.gps=yes
hw.gpu.enabled=yes
hw.gpu.mode=auto
hw.initialOrientation=Portrait
hw.keyboard=yes
hw.lcd.density=440
hw.lcd.height=2340
hw.lcd.width=1080
hw.mainKeys=no
hw.ramSize=4096
hw.sdCard=yes
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\user1\.android\avd\Pixel_5_API_27_test.avd\sdcard.img
sdcard.size=4 GB
showDeviceFrame=yes
skin.dynamic=yes
skin.name=1080x2340
skin.path=_no_skin
tag.display=Google APIs
tag.id=google_apis
vm.heapSize=256

标签: androidandroid-emulatorandroid-camerawebcam-capture

解决方案


推荐阅读