executeWithArgumentsAsync static method

Future<FFmpegSession> executeWithArgumentsAsync(
  1. List<String> commandArguments, [
  2. FFmpegSessionCompleteCallback? completeCallback = null,
  3. LogCallback? logCallback = null,
  4. StatisticsCallback? statisticsCallback = null,
])

Starts an asynchronous FFmpeg execution with arguments provided.

Note that this method returns immediately and does not wait the execution to complete. You must use an FFmpegSessionCompleteCallback if you want to be notified about the result.

Implementation

static Future<FFmpegSession> executeWithArgumentsAsync(
    List<String> commandArguments,
    [FFmpegSessionCompleteCallback? completeCallback = null,
    LogCallback? logCallback = null,
    StatisticsCallback? statisticsCallback = null]) async {
  final session = await FFmpegSession.create(commandArguments,
      completeCallback, logCallback, statisticsCallback, null);

  await FFmpegKitConfig.asyncFFmpegExecute(session);

  return session;
}