AVAsset
extension AVAsset
-
Generate Thumbnail for
Content
Usage Example:
AVAsset(url: contentLink).generateThumbnail { [weak self] (image, duration) in guard let image = image, let duration = duration else { return } self?.thumbnail = image self?.duration = duration }
Declaration
Swift
func generateInformation(completion: @escaping (UIImage?, Int?, AVPlayerItem?) -> Void)