如何允许 Android app(TV-box) 识别或访问 USB 网络摄像头?
How to allow Android app(TV-box) to recognize or access USB web camera?
我目前正在尝试在 Android 电视 set-top 机顶盒上开发 Android 视频会议应用程序。众所周知,Android 电视盒没有摄像头,因此我尝试使用 USB 网络摄像头,但 OS 无法识别 USB 摄像头并且无法从中检索视频源.
有没有办法确保我的 Android 应用程序能够接收来自 USB 摄像头的视频?
谢谢你,如果我不恰当地写了这个问题,我很抱歉,这是我第一次使用 Whosebug。
你有两个选择:
1) 找到 Android 支持外接摄像头的电视设备。来自 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,这需要具有满足上述要求的代码和驱动程序。这很重要,涉及 creating/integrating/testing 您自己的驱动程序,对于 Whosebug 问题来说太宽泛了。
我目前正在尝试在 Android 电视 set-top 机顶盒上开发 Android 视频会议应用程序。众所周知,Android 电视盒没有摄像头,因此我尝试使用 USB 网络摄像头,但 OS 无法识别 USB 摄像头并且无法从中检索视频源.
有没有办法确保我的 Android 应用程序能够接收来自 USB 摄像头的视频?
谢谢你,如果我不恰当地写了这个问题,我很抱歉,这是我第一次使用 Whosebug。
你有两个选择:
1) 找到 Android 支持外接摄像头的电视设备。来自 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,这需要具有满足上述要求的代码和驱动程序。这很重要,涉及 creating/integrating/testing 您自己的驱动程序,对于 Whosebug 问题来说太宽泛了。