getMediaInformationFromCommandAsync static method

Future<MediaInformationSession> getMediaInformationFromCommandAsync(
  1. String command, [
  2. MediaInformationSessionCompleteCallback? completeCallback = null,
  3. LogCallback? logCallback = null,
  4. int? waitTimeout = null,
])

Starts an asynchronous FFprobe execution to extract media information using a command. The command passed to this method must generate the output in JSON format in order to successfully extract media information from it.

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

Implementation

static Future<MediaInformationSession> getMediaInformationFromCommandAsync(
        String command,
        [MediaInformationSessionCompleteCallback? completeCallback = null,
        LogCallback? logCallback = null,
        int? waitTimeout = null]) async =>
    FFprobeKit.getMediaInformationFromCommandArgumentsAsync(
        FFmpegKitConfig.parseArguments(command),
        completeCallback,
        logCallback,
        waitTimeout);