getLastCompletedSession static method

Future<Session?> getLastCompletedSession()

Returns the last session completed from the session history.

Implementation

static Future<Session?> getLastCompletedSession() async {
  try {
    await init();
    return _platform
        .ffmpegKitConfigGetLastCompletedSession()
        .then(FFmpegKitFactory.mapToNullableSession);
  } on PlatformException catch (e, stack) {
    print("Plugin getLastCompletedSession error: ${e.message}");
    return Future.error("getLastCompletedSession failed.", stack);
  }
}