create static method

Future<FFmpegSession> create(
  1. List<String> argumentsArray, [
  2. FFmpegSessionCompleteCallback? completeCallback = null,
  3. LogCallback? logCallback = null,
  4. StatisticsCallback? statisticsCallback = null,
  5. LogRedirectionStrategy? logRedirectionStrategy = null,
])

Creates a new FFmpeg session with argumentsArray.

Implementation

static Future<FFmpegSession> create(List<String> argumentsArray,
    [FFmpegSessionCompleteCallback? completeCallback = null,
    LogCallback? logCallback = null,
    StatisticsCallback? statisticsCallback = null,
    LogRedirectionStrategy? logRedirectionStrategy = null]) async {
  final session = await AbstractSession.createFFmpegSession(
      argumentsArray, logRedirectionStrategy);
  final sessionId = session.getSessionId();

  FFmpegKitFactory.setFFmpegSessionCompleteCallback(
      sessionId, completeCallback);
  FFmpegKitFactory.setLogCallback(sessionId, logCallback);
  FFmpegKitFactory.setStatisticsCallback(sessionId, statisticsCallback);

  return session;
}