stopVideoRecording method

  1. @override
Future<XFile> stopVideoRecording({
  1. bool imageStream = false,
})
override

Stops the video recording and returns the file where it was saved.

Throws a CameraException if the capture failed.

Implementation

@override
Future<XFile> stopVideoRecording({bool imageStream = false}) async {
  final file = await super.stopVideoRecording();

  if (!value.isStreamingImages && imageStream) {
    await startImageStream(_processCameraImage);
  }

  return file;
}