AbedElazizShe / light_compressor

A powerful and easy-to-use video compression plugin for Flutter.
MIT License
59 stars 32 forks source link

IOS crash #54

Open alodevloper opened 6 months ago

alodevloper commented 6 months ago

after compress the video , couldn't get the file path

PathNotFoundException: Cannot retrieve length of file

final LightCompressor lightCompressor = LightCompressor();

  final Result response = await lightCompressor.compressVideo(
    path: file.path,
    videoQuality: VideoQuality.medium,
    isMinBitrateCheckEnabled: false,
    video: Video(videoName: file.path.split('.').first),
    android: AndroidConfig(
      isSharedStorage: false,
    ),
    ios: IOSConfig(saveInGallery: true),
  );
  debugPrint('==================> Compression finished <==============');
  if (response is OnSuccess) {
    debugPrint('==================> Compression OnSuccess <==============');

    final String outputFile = response.destinationPath;