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

IOS crash  #54

Open
Open
@alodevloper

Description

@alodevloper

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions