diff --git a/java/src/org/linphone/mediastream/video/capture/AndroidVideoApi9JniWrapper.java b/java/src/org/linphone/mediastream/video/capture/AndroidVideoApi9JniWrapper.java index 42fb25009..a73fe6734 100644 --- a/java/src/org/linphone/mediastream/video/capture/AndroidVideoApi9JniWrapper.java +++ b/java/src/org/linphone/mediastream/video/capture/AndroidVideoApi9JniWrapper.java @@ -60,6 +60,11 @@ public static Object startRecording(int cameraId, int width, int height, int fps params.setPreviewSize(width, height); int[] chosenFps = findClosestEnclosingFpsRange(fps*1000, params.getSupportedPreviewFpsRange()); params.setPreviewFpsRange(chosenFps[0], chosenFps[1]); + + if(camera.getParameters().getSupportedFocusModes().contains(Parameters.FOCUS_MODE_CONTINUOUS_VIDEO)) { + params.setFocusMode(Parameters.FOCUS_MODE_CONTINUOUS_VIDEO); + } + camera.setParameters(params); int bufferSize = (width * height * ImageFormat.getBitsPerPixel(params.getPreviewFormat())) / 8;