From 29da606524afe5368bb49992ec5e0511b2932a4b Mon Sep 17 00:00:00 2001 From: Mattia Iavarone Date: Tue, 8 Oct 2019 20:44:03 +0200 Subject: [PATCH] Add comments --- .../otaliastudios/cameraview/video/SnapshotVideoRecorder.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cameraview/src/main/java/com/otaliastudios/cameraview/video/SnapshotVideoRecorder.java b/cameraview/src/main/java/com/otaliastudios/cameraview/video/SnapshotVideoRecorder.java index 814a7069..4d3cde12 100644 --- a/cameraview/src/main/java/com/otaliastudios/cameraview/video/SnapshotVideoRecorder.java +++ b/cameraview/src/main/java/com/otaliastudios/cameraview/video/SnapshotVideoRecorder.java @@ -241,7 +241,9 @@ public class SnapshotVideoRecorder extends VideoRecorder implements RendererFram @Override public void onEncodingStart() { - //do nothing + // This would be the most correct place to call dispatchVideoRecordingStart. However, + // after this we'll post the call on the UI thread which can take some time. To compensate + // this, we call dispatchVideoRecordingStart() a bit earlier in this class (onStart()). } @Override