如何允许Android应用(电视盒)识别或访问USB网络摄像头? [英] How to allow Android app(TV-box) to recognize or access USB web camera?

查看:1002
本文介绍了如何允许Android应用(电视盒)识别或访问USB网络摄像头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试在Android电视机顶盒上开发Android视频会议应用程序。我们所有人都知道,Android电视盒没有摄像头,因此我尝试使用USB网络摄像头,但是操作系统无法识别USB摄像头,因此无法从中检索视频。

I am currently trying to develop an Android video conference application on a Android TV set-top box. As all of us know, Android TV box does not have a camera and therefore I tried to use a USB web camera but the OS does not recognize the USB camera and is unable to retrieve video feed from it.

是否可以确保我的Android应用程序能够从USB摄像头接收视频供稿?

Is there anyway to make sure my Android application is able to receive video feed from the USB camera?

谢谢,如果我写了封信,对不起这个问题不合适,这是我第一次使用Stackoverflow。

Thank you and sorry if I wrote this question inappropriately, it's my first time using Stackoverflow.

推荐答案

您有两种选择:

1)找到支持外部摄像机的Android TV设备。来自 Android兼容性定义文档

1) Find a Android TV device which supports external camera(s). From the Android Compatibility Definition Document

第7.5.3节。外部摄像机

Device implementations MAY include support for an external camera that is not necessarily
always connected. If a device includes support for an external camera, it:

* MUST declare the platform feature flag
  android.hardware.camera.external and android.hardware camera.any .
* MAY support multiple cameras.
* MUST support USB Video Class (UVC 1.0 or higher) if the
  external camera connects through the USB port.
* SHOULD support video compressions such as MJPEG to enable transfer
  of high-quality unencoded streams (i.e. raw or independently compressed picture streams).
* MAY support camera-based video encoding. If supported, a simultaneous
  unencoded / MJPEG stream (QVGA or greater resolution) MUST be
  accessible to the device implementation.

OR

2)创建自己的定制ROM,需要具有代码和驱动程序才能满足上述要求。这并非易事,涉及到创建/集成/测试您自己的驱动程序,而这对于StackOverflow问题而言过于广泛。

2) Create your own Custom ROM which would require having the code and drivers to satisfy the above requirement. This is non-trivial and involves creating/integrating/testing your own driver which is too broad for StackOverflow question.

这篇关于如何允许Android应用(电视盒)识别或访问USB网络摄像头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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