compressVideo static method

Future<MediaInfo?> compressVideo(
  1. String videoPath
)

Implementation

static Future<MediaInfo?> compressVideo(String videoPath) async {
  return await VideoCompress.compressVideo(
    videoPath,
    quality: VideoQuality.DefaultQuality, // 可以选择不同的质量等级
  );
}