指定时间播放,闪退
JamhonyZ opened this issue · comments
Jamhony_张 commented
_play = [[HcdCacheVideoPlayer alloc] init];
[_play playWithUrl:[NSURL URLWithString:url showView:_videoImg andSuperView:self withCache:YES];
[_play seekToTime:3];
指定时间播放会闪退 进入下面的代码的时候 self.duration时间为0
seconds = MIN(seconds, self.duration);
[self.player pause];
[self.player seekToTime:CMTimeMakeWithSeconds(seconds, NSEC_PER_SEC) completionHandler:^(BOOL finished) {}