resumeVideoRecording method

Future<void> resumeVideoRecording ()

Resume video recording after pausing.

This feature is only available on iOS and Android sdk 24+.

Implementation

Future<void> resumeVideoRecording() async {
  if (!value.isInitialized || _isDisposed) {
    throw CameraException(
      'Uninitialized CameraController',
      'resumeVideoRecording was called on uninitialized CameraController',
    );
  }
  if (!value.isRecordingVideo) {
    throw CameraException(
      'No video is recording',
      'resumeVideoRecording was called when no video is recording.',
    );
  }
  try {
    value = value.copyWith(isRecordingPaused: false);
    await _channel.invokeMethod<void>(
      'resumeVideoRecording',
      <String, dynamic>{'textureId': _textureId},
    );
  } on PlatformException catch (e) {
    throw CameraException(e.code, e.message);
  }
}