Skip to main content

VideoPreviewLoader

A protocol the video preview uploader implementation must conform to.

public protocol VideoPreviewLoader: AnyObject 

Inheritance

AnyObject

Requirements

loadPreviewForVideo(at:​completion:​)

Loads a preview for the video at given URL.

func loadPreviewForVideo(at url: URL, completion: @escaping (Result<UIImage, Error>) -> Void)

Parameters

  • url: A video URL.
  • completion: A completion that is called when a preview is loaded. Must be invoked on main queue.

Did you find this page helpful?