cancel method

Future<void> cancel()

Implementation

Future<void> cancel() async {
  _cancelled = true;
  final id = _sessionId;
  if (id != null) {
    try {
      await FFmpegKit.cancel(id);
    } catch (e) {
      debugPrint('Cancel failed: $e');
    }
  }
}