Trimming video with Monotouch fails with “The operation could not be completed”
I am trying to trim a video to 5 seconds programmatically. Here is my implementation. AVAssetExportSession exportSession= new AVAssetExportSession(videoAsset,AVAssetExportSession.PresetLowQuality.ToString()); int SystemVersion = Convert.ToInt16(UIDevice.CurrentDevice.SystemVersion.Split('.')[0]); string filename; if (SystemVersion >= 8) { var documents = NSFileManager.DefaultManager.GetUrls(NSSearchPathDirectory.DocumentDirectory, NSSearchPathDomain.User)[0].Path; filename = Path.Combine(documents, "trimmed.mov"); } else { var documents = Environment.GetFolderPath(Environment.SpecialFolder