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