Move snapshot video start callback to onStart (#632)

pull/659/head
Suneet Agrawal 5 years ago committed by Mattia Iavarone
parent 824abbc55a
commit 19f607a959
  1. 3
      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

Loading…
Cancel
Save