getLastSession static method
Returns the last session created from the session history.
Implementation
static Future<Session?> getLastSession() async {
try {
await init();
return _platform
.ffmpegKitConfigGetLastSession()
.then(FFmpegKitFactory.mapToNullableSession);
} on PlatformException catch (e, stack) {
print("Plugin getLastSession error: ${e.message}");
return Future.error("getLastSession failed.", stack);
}
}