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

查看:217
本文介绍了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

我该如何解决?

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

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

推荐答案

在Android Studio中,转到AVD管理器,单击操作"中的编辑(铅笔)"按钮.之后,在下一个出现的窗口中,单击高级设置",然后向下滚动,然后在摄像头"选项中,选择用于前后摄像头的摄像头.

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天全站免登陆