Closed NaosFr closed 3 years ago
Same issue for me on iOS only. Write a copy of the compressed vidéo in the gallery.
final Map<String, dynamic>? response = await LightCompressor.compressVideo(
path: _filePath!,
destinationPath: _desFile,
videoQuality: VideoQuality.high,
isMinBitRateEnabled: false,
keepOriginalResolution: false
);
The problem is in the file "SwiftLightCompressorPlugin.swift"
Just remove:
DispatchQueue.main.async {
PHPhotoLibrary.shared().performChanges({
PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: path)
})
}
Maybe create an option 😎
It works like a charm. I hope it will be a fixed for futures versions. Merci Nicolas ca m'a fait gagner beaucoup de temps.
Thank you for opening the issue and the suggestion to fix it, I added a bool iosSaveToGallery
to avoid saving, you can just pass it with false. Please use version 1.0.3.
Thank you !
Hello, any idea how to not save the video in the phone gallery?
my code :
thx for your time 😇