compressVideo static method

Future<MediaInfo?> compressVideo(
  1. File file
)

Implementation

static Future<MediaInfo?> compressVideo(File file) async {
  try {
    await VideoCompress.setLogLevel(0);
    return VideoCompress.compressVideo(
      file.path,
      quality: VideoQuality.LowQuality,
      includeAudio: true,
    );
  } catch (e) {
    VideoCompress.cancelCompression();
  }
}