create static method
Future<MediaInformationSession>
create(
- List<
String> argumentsArray, [ - MediaInformationSessionCompleteCallback? completeCallback = null,
- 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;
}