create static method

Future<FFprobeSession> create(
  1. List<String> argumentsArray, [
  2. FFprobeSessionCompleteCallback? completeCallback = null,
  3. LogCallback? logCallback = null,
  4. LogRedirectionStrategy? logRedirectionStrategy = null,
])

Creates a new FFprobe session with argumentsArray.

Implementation

static Future<FFprobeSession> create(List<String> argumentsArray,
    [FFprobeSessionCompleteCallback? completeCallback = null,
    LogCallback? logCallback = null,
    LogRedirectionStrategy? logRedirectionStrategy = null]) async {
  final session = await AbstractSession.createFFprobeSession(
      argumentsArray, logRedirectionStrategy);
  final sessionId = session.getSessionId();

  FFmpegKitFactory.setFFprobeSessionCompleteCallback(
      sessionId, completeCallback);
  FFmpegKitFactory.setLogCallback(sessionId, logCallback);

  return session;
}