开发者

Snapshot from a MPMoviePlayerController video

开发者 https://www.devze.com 2022-12-28 13:56 出处:网络
Is there a way I can take a snapshot of a movie or clip being played in iPh开发者_如何学运维one\'s MPMoviePlayerController programmatically?You are probably looking for this, available on iOS 4.x+

Is there a way I can take a snapshot of a movie or clip being played in iPh开发者_如何学运维one's MPMoviePlayerController programmatically?


You are probably looking for this, available on iOS 4.x+

To facilitate the creation of video bookmarks or chapter links for a long movie, the MPMoviePlayerController class defines methods for generating thumbnail images at specific times within a movie. You can request a single thumbnail image using the thumbnailImageAtTime:timeOption: method or request multiple thumbnail images using the requestThumbnailImagesAtTimes:timeOption: method.

More at: http://developer.apple.com/iphone/library/documentation/MediaPlayer/Reference/MPMoviePlayerController_Class/MPMoviePlayerController/MPMoviePlayerController.htmlmethod.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号