create static method

Future<MediaInformationSession> create(
  1. List<String> argumentsArray, [
  2. MediaInformationSessionCompleteCallback? completeCallback = null,
  3. LogCallback? logCallback = null
])

Creates a new MediaInformation session with argumentsArray.

Implementation

static Future<MediaInformationSession> create(List<String> argumentsArray,
    [MediaInformationSessionCompleteCallback? completeCallback = null,
    LogCallback? logCallback = null]) async {
  final session =
      await AbstractSession.createMediaInformationSession(argumentsArray);
  final sessionId = session.getSessionId();

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

  return session;
}