() // rotate camera // base on opening opengl es setRotateType(type) // switch different camera switchCamera(UsbDevice) // update resolution updateResolution(width, height) // get all preview sizes getAllPreviewSizes(aspectRatio) // acquire encode data(H.264 or AAC) addEncodeDataCallBack(...
The most important is that you should override getRootView()/getCameraViewContainer()/ getCameraView() at least which means fragment's root view 、texture or surface view and it's container。Of course, the same as CameraActivity and now you can see the uvc camera preview。
The most important is that you should override getRootView()/getCameraViewContainer()/ getCameraView() at least which means fragment's root view 、texture or surface view and it's container。Of course, the same as CameraActivity and now you can see the uvc camera preview。
The most important is that you should override getRootView()/getCameraViewContainer()/ getCameraView() at least which means fragment's root view 、texture or surface view and it's container。Of course, the same as CameraActivity and now you can see the uvc camera preview。
The most important is that you should override getRootView()/getCameraViewContainer()/ getCameraView() at least which means fragment's root view 、texture or surface view and it's container。Of course, the same as CameraActivity and now you can see the uvc camera preview。
The most important is that you should override getRootView()/getCameraViewContainer()/ getCameraView() at least which means fragment's root view 、texture or surface view and it's container。Of course, the same as CameraActivity and now you can see the uvc camera preview。
The most important is that you should override getRootView()/getCameraViewContainer()/ getCameraView() at least which means fragment's root view 、texture or surface view and it's container。Of course, the same as CameraActivity and now you can see the uvc camera preview。
dependencies { implementation'com.github.jiangdongguo.AndroidUSBCamera:libausbc:latest_tag'} Simply usage As for how to use this module correctly, just making your Fragment or Activity implementCameraFragmentorCameraActivity. classDemoFragment:CameraFragment() {privatevarmViewBinding:FragmentUvcBinding...
The most important is that you should override getRootView()/getCameraViewContainer()/ getCameraView() at least which means fragment's root view 、texture or surface view and it's container。Of course, the same as CameraActivity and now you can see the uvc camera preview。
// if you want to open a camera default // please override getDefaultCamera() override fun getDefaultCamera(): UsbDevice? { return super.getDefaultCamera() } // if you want to custom camera requst // please override getCameraRequest() override fun getCameraRequest(): CameraRequest { ...