getEndTime method

Future<DateTime?> getEndTime()
override

Returns session end time.

Implementation

Future<DateTime?> getEndTime() async {
  try {
    return _platform
        .abstractSessionGetEndTime(this.getSessionId())
        .then(FFmpegKitFactory.validDate);
  } on PlatformException catch (e, stack) {
    print("Plugin getEndTime error: ${e.message}");
    return Future.error("getEndTime failed.", stack);
  }
}