Instance Method

thumbnailImage(atTime:timeOption:)

Captures and returns a thumbnail image from the current movie.

Declaration

func thumbnailImage(atTime playbackTime: TimeInterval, timeOption option: MPMovieTimeOption) -> UIImage!

Parameters

playbackTime

The time at which to capture the thumbnail image. The time value represents the number of seconds from the beginning of the current movie.

option

The option to use when determining which specific frame to use for the thumbnail image. For a list of possible values, see MPMovieTimeOption.

Return Value

An image object containing the image from the movie or nil if the thumbnail could not be captured.

Discussion

This method captures the thumbnail image synchronously from the current movie (which is accessible from the MPMovieSourceType.unknown property).

See Also

Generating Thumbnail Images

func requestThumbnailImages(atTimes: [Any]!, timeOption: MPMovieTimeOption)

Captures one or more thumbnail images asynchronously from the current movie.

Deprecated
func cancelAllThumbnailImageRequests()

Cancels all pending asynchronous thumbnail image requests.

Deprecated