2017-01-10 57 views
0

我目前正在嘗試在Android TV機頂盒上開發Android視頻會議應用程序。正如我們所有人都知道的那樣,Android TV盒沒有相機,因此我試圖使用USB網絡相機,但操作系統無法識別USB相機,無法從中檢索視頻。如何讓Android應用程序(電視盒)識別或訪問USB網絡攝像頭?

無論如何要確保我的Android應用程序能夠從USB攝像頭接收視頻數據嗎?

謝謝你,對不起,如果我不恰當地寫這個問題,這是我第一次使用Stackoverflow。

回答

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. 

OR

2)創建自己的自定義ROM這就需要有代碼和驅動程序,以滿足上述要求。這不是微不足道的,並且涉及創建/集成/測試您自己的驅動程序,這對於StackOverflow問題來說太寬泛了。

相關問題