android集成外部UVC相机,使用第三方类库,https://github.com/saki4510t/UVCCamera
ARRtcpKit类中有两个方法看着支持uvc相机对接,但参数是object类型,可否使用此方法进行对接?
/**
获取UVC Camera的采集数据
@return
/
public long getUVCCallabck() {
return nativeGetAnyrtcUvcCallabck();
}
/**
* UVC相机数据与RTC对接
*
* @param usbCamera usb相机
* @return
*/
public int setUvcVideoCapturer(final Object usbCamera) {
final Exchanger<Integer> result = new Exchanger<Integer>();
mExecutor.execute(new Runnable() {
@Override
public void run() {
if (mVideoCapturer == null) {
mCameraId = 0;
nativeSetUvcVideoCapturer(usbCamera, "");
LooperExecutor.exchange(result, 0);
}
}
});
return LooperExecutor.exchange(result, 1);
}