How to implement smooth seeking in video with AVPlayer?
When I seek to time with AVPlayer and a slider I get choppy results.
Seeking backwards stutters and lags a lot but seeking forwards is smooth.
[player seekToTime:CMTimeMakeWithSeconds(targetSeekTime, NSEC_PER_SEC)
toleranceBefore:kCMTimeZero toleranceAfter:kCMTimeZero];
Built-in camera app has much smoother seeking. Maybe there is a setting?
No comments:
Post a Comment