Custom Video Driver
I only found one issue that I think you need to resolve. Auto focus is not enabled for the custom video capturer. I suggest adding:
if (parameters.getSupportedFocusModes().contains(Camera.Parameters.FOCUS_MODE_CONTINUOUS_VIDEO)){
parameters.setFocusMode(Camera.Parameters.FOCUS_MODE_CONTINUOUS_VIDEO);
}
Based on partner's request:
Custom Video Driver I only found one issue that I think you need to resolve. Auto focus is not enabled for the custom video capturer. I suggest adding:
if (parameters.getSupportedFocusModes().contains(Camera.Parameters.FOCUS_MODE_CONTINUOUS_VIDEO)){ parameters.setFocusMode(Camera.Parameters.FOCUS_MODE_CONTINUOUS_VIDEO); }
Before setting the camera parameters in startCapture() I also see a lot of warning log statements e.g. "init() entered" + more similar. (link (https://github.com/opentok/opentok-android-sdk-samples/blob/master/Custom-Video-Driver/app/src/main/java/com/tokbox/android/tutorials/custom_video_driver/CustomVideoCapturer.java#L104) ). Better practice to keep them as verbose log statements instead of warnings.