compressVideo static method
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();
}
}