- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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);
- Tags:
- HTML5
- JavaScript*
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If the USB camera is the only camera of this Android device, it should be in the the getCameraList().
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
getCameraList() cannot find any camera
QQ can find that camera and use it .
Has any other method to get it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Generally we don't support to get all external USB cameras in Android SDK. We are considering to add this capability in next release.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page