I've selected a video using the Media plugin and now I want to get the thumbnail from the video in Xamarin iOS. How can I get the video?
Got it working with the below code:
using (var asset = AVAsset.FromUrl(NSUrl.FromFilename(filePath)))
using (var imageGen = new AVAssetImageGenerator(asset))
using (var imageRef = imageGen.CopyCGImageAtTime(new CoreMedia.CMTime(1,1), out actualTime, out outError))
if (imageRef == null)
var image = UIImage.FromImage(imageRef);
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies