Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

IOS crash #54

Open
alodevloper opened this issue Jan 2, 2024 · 0 comments
Open

IOS crash #54

alodevloper opened this issue Jan 2, 2024 · 0 comments

Comments

@alodevloper
Copy link

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;
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant