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