How to take a screenshot from an video playing through MPMediaPlayerController in iPhone?

前端 未结 3 1380
借酒劲吻你
借酒劲吻你 2020-12-16 07:02

Can anybody help me in this? I want to get an screenshot from an video playing through MPMediaPlayerController. What i have tried so far is:-

-(void)viewDidL         


        
3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-16 07:22

    This may help

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

    Get the thumbnailImage at the given time and scale that image.

提交回复
热议问题