create static method
Future<FFmpegSession>
create(
- List<
String> argumentsArray, [ - FFmpegSessionCompleteCallback? completeCallback = null,
- LogCallback? logCallback = null,
- StatisticsCallback? statisticsCallback = null,
- 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;
}