Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Android SDK how to use usb camera,it is /dev/viedo2

allen_w_
Beginner
959 Views
usb camera is /dev/video2,how to use it?
msp = new LocalCameraStreamParameters(true, true);

msp.setCameraId(2);//0\1\2\3  is'nt  work.

another method isn't work yet:

LocalCameraStreamParameters.CameraType ca=LocalCameraStreamParameters.CameraType.valueOf("/dev/video2");
msp.setCamera(ca);
0 Kudos
4 Replies
Lei_Z_Intel1
Employee
959 Views

Please check if it's in LocalCameraStreamParameters.getCameraList(), which means can be recognized by Android.

setCamera() will only accept one of the types in the list returned from above method.

0 Kudos
Lei_Z_Intel1
Employee
959 Views

If the USB camera is the only camera of this Android device, it should be in the the getCameraList().

0 Kudos
allen_w_
Beginner
959 Views

getCameraList() cannot find any camera

QQ can find that camera and use it .

Has any other method to get it?

0 Kudos
Lei_Z_Intel1
Employee
959 Views

Generally we don't support to get all external USB cameras in Android SDK. We are considering to add this capability in next release.

0 Kudos
Reply