release mediarecorder in endVideo

pull/1/head
Dylan McIntyre 8 years ago
parent ae4f68b0b3
commit fe00cade24
  1. 1
      camerakit/src/main/api16/com/flurgle/camerakit/Camera1.java

@ -230,6 +230,7 @@ public class Camera1 extends CameraImpl {
@Override @Override
void endVideo() { void endVideo() {
mMediaRecorder.stop(); mMediaRecorder.stop();
mMediaRecorder.release();
mMediaRecorder = null; mMediaRecorder = null;
mCameraListener.onVideoTaken(mVideoFile); mCameraListener.onVideoTaken(mVideoFile);
} }

Loading…
Cancel
Save