Instance Method

thumbnailImageAtTime:timeOption:

Captures and returns a thumbnail image from the current movie.

Declaration

- (UIImage *)thumbnailImageAtTime:(NSTimeInterval)playbackTime timeOption:(MPMovieTimeOption)option;

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 MPMovieSourceTypeUnknown property).

See Also

Generating Thumbnail Images

- requestThumbnailImagesAtTimes:timeOption:

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

Deprecated
- cancelAllThumbnailImageRequests

Cancels all pending asynchronous thumbnail image requests.

Deprecated