executeWithArgumentsAsync static method

Future<FFprobeSession> executeWithArgumentsAsync(
  1. List<String> commandArguments, [
  2. FFprobeSessionCompleteCallback? completeCallback = null,
  3. LogCallback? logCallback = null
])

Starts an asynchronous FFprobe execution with arguments provided.

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

Implementation

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

  await FFmpegKitConfig.asyncFFprobeExecute(session);

  return session;
}