How to allow Android app(TV-box) to recognize or access USB web camera?

后端 未结 1 1569
半阙折子戏
半阙折子戏 2021-01-14 12:05

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

相关标签:
1条回答
  • 2021-01-14 13:03

    You have two choices:

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

    Section 7.5.3. External Camera

    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) 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.

    0 讨论(0)
提交回复
热议问题