createMediaInformationSessionFromMap static method
Creates a new MediaInformation session from sessionMap
, which includes
session fields as map keys.
Returns MediaInformation session created.
Implementation
static MediaInformationSession createMediaInformationSessionFromMap(
Map<dynamic, dynamic> sessionMap) {
final session = new MediaInformationSession();
session._sessionId = sessionMap["sessionId"];
session._createTime = FFmpegKitFactory.validDate(sessionMap["createTime"]);
session._startTime = FFmpegKitFactory.validDate(sessionMap["startTime"]);
session._command = sessionMap["command"];
session._argumentsArray =
FFmpegKitConfig.parseArguments(sessionMap["command"]);
session._logRedirectionStrategy = LogRedirectionStrategy.neverPrintLogs;
if (sessionMap.containsKey("mediaInformation")) {
session.setMediaInformation(
new MediaInformation(sessionMap["mediaInformation"]));
}
return session;
}