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() { protected void onStart() {
mPreview.addRendererFrameCallback(this); mPreview.addRendererFrameCallback(this);
mDesiredState = STATE_RECORDING; mDesiredState = STATE_RECORDING;
dispatchVideoRecordingStart();
} }
@Override @Override
@ -240,7 +241,7 @@ public class SnapshotVideoRecorder extends VideoRecorder implements RendererFram
@Override @Override
public void onEncodingStart() { public void onEncodingStart() {
dispatchVideoRecordingStart(); //do nothing
} }
@Override @Override

Loading…
Cancel
Save