Swift – generating image thumbnail from a local video – Ios swift
I'm trying to create a Thumbnail image from a video: func getImageFromUrl(url:URL) -> UIImage?{ print(url) let video = AVURLAsset(url: url) let thumbnailGenerator = AVAssetImageGenerator(asset: video) do { let cgImage = try thumbnailGenerator.copyCGImage(at: CMTimeMake(value: 0, timescale: 1), actualTime: nil) let UiImage…