resume method

Future<void> resume()

Resume record

Implementation

Future<void> resume() async {
  if (!(value.isInitialized ?? false) || _isDisposed) {
    throw AudioStreamingException(
      'Uninitialized CameraController',
      'stopVideoStreaming was called on uninitialized CameraController',
    );
  }
  if (!(value.isPause ?? false)) {
    throw AudioStreamingException(
      'No video is recording',
      'stopVideoStreaming was called when no video is streaming.',
    );
  }
  try {
    value = value.copyWith(isRecording: true, isPause: false);
    await channel.resume();
  } on PlatformException catch (e) {
    throw AudioStreamingException(e.code, e.message);
  }
}