isLTSBuild static method

Future<bool> isLTSBuild()

Returns whether FFmpegKit release is a Long Term Release or not.

Implementation

static Future<bool> isLTSBuild() async {
  try {
    await init();
    return _platform.ffmpegKitConfigIsLTSBuild().then((value) {
      if (value == null) {
        return false;
      } else {
        return value;
      }
    });
  } on PlatformException catch (e, stack) {
    print("Plugin isLTSBuild error: ${e.message}");
    return Future.error("isLTSBuild failed.", stack);
  }
}