cancelCompression method

Future<void> cancelCompression()

Stops the running compression; compressVideo then returns null.

Implementation

Future<void> cancelCompression() async {
  try {
    await _task?.cancel();
  } on VideoCompressException catch (e) {
    // video_compress ignored a failed cancel as well.
    _log('cancelCompression', e);
  }
}