-
Notifications
You must be signed in to change notification settings - Fork 146
shotScreen
shixuemei edited this page Dec 12, 2017
·
5 revisions
有两个组件提供了获取图像的接口:
- (UIImage *)thumbnailImageAtCurrentTime
- 该方法获取到的图像为当前时刻显示在UIView上的图像,用户无需考虑内容自带的rotate信息;如果播放时有调用旋转/镜像方法,那么获取到的图像也是旋转/镜像的
[_player thumbnailImageAtCurrentTime];
- (UIImage *)[getVideoThumbnailImageAtTime][getVideoThumbnailImageAtTime]:(NSTimeInterval)seekTime width:(int)width height:(int)height
- KSYMoviePlayerController,只能在播放过程中调用,只能截取当前播放时刻的画面
- KSYMediaInfoProber,任意时刻都可以调用,截图的画面是设置时间附近关键帧画面