|
|
|
@ -1188,14 +1188,19 @@ public abstract class CameraEngine implements |
|
|
|
|
@Override |
|
|
|
|
public void run() { |
|
|
|
|
LOG.i("stopVideo", "executing.", "isTakingVideo?", isTakingVideo()); |
|
|
|
|
if (mVideoRecorder != null) { |
|
|
|
|
mVideoRecorder.stop(false); |
|
|
|
|
mVideoRecorder = null; |
|
|
|
|
} |
|
|
|
|
onStopVideo(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void onStopVideo() { |
|
|
|
|
LOG.i("stopVideo", "executing.", "isTakingVideo?", isTakingVideo()); |
|
|
|
|
if (mVideoRecorder != null) { |
|
|
|
|
mVideoRecorder.stop(false); |
|
|
|
|
mVideoRecorder = null; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@CallSuper |
|
|
|
|
@Override |
|
|
|
|
public void onVideoResult(@Nullable VideoResult.Stub result, @Nullable Exception exception) { |
|
|
|
|