【问题标题】:How to allow Android app(TV-box) to recognize or access USB web camera?如何让 Android 应用(电视盒)识别或访问 USB 网络摄像头?
【发布时间】:2017-05-24 10:46:14
【问题描述】:

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

有没有办法确保我的 Android 应用程序能够接收来自 USB 摄像头的视频?

谢谢你,如果我写这个问题不恰当,我很抱歉,这是我第一次使用 Stackoverflow。

【问题讨论】:

    标签: android camera usb webcam television


    【解决方案1】:

    你有两个选择:

    1) 查找支持外接摄像头的 Android TV 设备。来自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.
    

    2) 创建您自己的自定义 ROM,这需要代码和驱动程序来满足上述要求。这很重要,涉及创建/集成/测试您自己的驱动程序,这对于 StackOverflow 问题来说过于宽泛。

    【讨论】:

    • 我有 ip 摄像头,我想与电视设备连接以作为 android 默认摄像头工作,是否可以请回复
    • @Innocent,你找到问题的答案了吗?
    猜你喜欢
    • 2019-11-11
    • 2011-10-06
    • 1970-01-01
    • 2015-01-07
    • 1970-01-01
    • 1970-01-01
    • 2018-04-07
    • 2012-09-21
    • 2012-08-16
    相关资源
    最近更新 更多