is there any plugin available for compress video , images and Document files
I didn't find any plugins for this.
I prefer you to use some zip-algorithm to Zip and UnZip files.
Refer these links to get some predefined classes for Zip and UnZip.
Thanks Vaikesh Leo ... but i don't want to zip and unzip files
Zip is a common way of compression.
Are you try some other ?
zipping does not compresses the video files size for me. the zipped file is almost in the same size of the original file,
the solution that i have found is that
compress the video using ffmpeg for xamarin android https://github.com/leye0/XamarinAndroidFFmpeg
string downloadPath = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
string downloadFilePath = Path.Combine(downloadPath, "compressed_video.mp4");
var asset = AVAsset.FromUrl( NSUrl.FromFilename( sourceFilePath ) );
AVAssetExportSession export = new AVAssetExportSession (asset, AVAssetExportSession.PresetLowQuality );
export.OutputUrl = NSUrl.FromFilename( downloadFilePath );
export.OutputFileType = AVFileType.Mpeg4;
export.ShouldOptimizeForNetworkUse = true;
export.ExportAsynchronously( ( ) =>
if( export.Error != null )
System.Diagnostics.Debug.WriteLine( export.Error.LocalizedDescription );
Hi @praveen mm,
Could you please share your sample video compression code to me, i have been struggling to find the faster compression code.
I will really appreciate for your help.
public Compress (String files, String zipFiles)
_files = files;
_zipFiles = zipFiles;
What value comes in the string files and string Zipfiles
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies