riot-android icon indicating copy to clipboard operation
riot-android copied to clipboard

usb webcam support

Open tamasberesoebb opened this issue 4 years ago • 1 comments

I would like to add USB Webcam support to Riot. I have checked out the source, and started to analyse it. I have not found the proper entry points yet...where does the camera magic happen? Could someone point me in the right direction please?

Thanks.

Why? There are many USB Based Camera devices which work out of the box with Android: https://www.amazon.com/Lechnical-Megapixel-Camera-Desktop-Computer/dp/B084C1SMZC

There are many apps on the Play store which support usb cameras: https://play.google.com/store/apps/details?id=infinitegra.app.usbcamera https://play.google.com/store/apps/details?id=com.dingtai.snakecamera

There is no video chat platform on Android (as far as I know), which has support for external webcams. Let's fix that ;)

The OS has support for usb cams: https://source.android.com/devices/camera/external-usb-cameras

The Android platform supports the use of plug-and-play USB cameras (that is, webcams) using the standard Android Camera2 API and the camera HIDL interface. Webcams generally support USB video class (UVC) drivers and on Linux, the standard Video4Linux (V4L) driver is used to control UVC cameras.

Here is a sample UVC camera implementation, which I have tried, and it works: https://github.com/saki4510t/OpenCVwithUVC

tamasberesoebb avatar Mar 23 '20 12:03 tamasberesoebb

Just FYI for anyone reading this, Riot is using https://jitsi.org/built-on-jitsi/ for the video chat feature. I'm currently digging trough the react native dependencies in https://github.com/jitsi/jitsi-meet

I have also found a sample project for using uvc cameras with react native, which is here: https://github.com/flyskywhy/UvcCameraManager https://github.com/flyskywhy/react-native-uvc-camera

tamasberesoebb avatar Apr 02 '20 12:04 tamasberesoebb