From 19f607a959afe79c4b8e2a589a94b8333018d9e5 Mon Sep 17 00:00:00 2001 From: Suneet Agrawal Date: Tue, 8 Oct 2019 13:45:18 +0530 Subject: [PATCH] Move snapshot video start callback to onStart (#632) --- .../otaliastudios/cameraview/video/SnapshotVideoRecorder.java | 3 ++- 1 file changed, 2 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 e88a9c7e..814a7069 100644 --- a/cameraview/src/main/java/com/otaliastudios/cameraview/video/SnapshotVideoRecorder.java +++ b/cameraview/src/main/java/com/otaliastudios/cameraview/video/SnapshotVideoRecorder.java @@ -79,6 +79,7 @@ public class SnapshotVideoRecorder extends VideoRecorder implements RendererFram protected void onStart() { mPreview.addRendererFrameCallback(this); mDesiredState = STATE_RECORDING; + dispatchVideoRecordingStart(); } @Override @@ -240,7 +241,7 @@ public class SnapshotVideoRecorder extends VideoRecorder implements RendererFram @Override public void onEncodingStart() { - dispatchVideoRecordingStart(); + //do nothing } @Override