Android 模拟器:无法启动网络摄像头以在模拟器中捕获图片 [英] Android Emulator: Unable to start webcam to capture picture in emulator

查看:63
本文介绍了Android 模拟器:无法启动网络摄像头以在模拟器中捕获图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Android Studio 的 AVD 管理器中创建了一个 armeabi API 21 模拟器,将其设置为使用网络摄像头作为前置摄像头,然后启动它.问题是它无法打开它,因为我收到此错误:

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 to open it, as I'm getting this error:

emulator: ERROR: camera_device_start_capturing: VIDIOC_STREAMON on camera '/dev/video0' has failed: Timer expired
emulator: ERROR: _camera_client_query_start: Cannot start camera '/dev/video0' for NV21[640x480]: Inappropriate ioctl for device

我该如何解决这个问题?

How can I solve this?

网络摄像头使用其他软件正常工作.操作系统为Ubuntu 14.04.

The webcam works normally using other software. The operative system is Ubuntu 14.04.

推荐答案

在 Android Studio 中,转到 AVD Manager,单击 Actions 中的编辑(铅笔)按钮.之后,在下一个出现的窗口中,单击高级设置,然后向下滚动并在相机选项中,选择前后网络摄像头.

In Android Studio, go to AVD Manager, click on edit (pencil) button in Actions. After that, in next appearing window, click on Advance settings, and then scroll down and in Camera options, select webcam for front and back.

这篇关于Android 模拟器:无法启动网络摄像头以在模拟器中捕获图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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