private VideoCapturer createVideoCapturer() { VideoCapturer videoCapturer; Logging.d(TAG, "Creating capturer using camera1 API."); videoCapturer = createCameraCapturer(new Camera1Enumerator(false)); return videoCapturer; }
/** * Get a camera enumerator * * @param context the context * @return the camera enumerator */ private static CameraEnumerator getCameraEnumerator(Context context) { if (useCamera2(context)) { return new Camera2Enumerator(context); } else { return new Camera1Enumerator(false); } }
public static VideoCapturer createCamera1Capturer(boolean captureToTexture) { return createCameraCapturer(new Camera1Enumerator(captureToTexture)); }