I'm using AVPlayer
to create a video player, but the seekToTime
method is pretty slow. I'm impressed by the seeking performance of Apple's app "Photos". Does anyone have any idea how Apple managed to do such a quick seeking?
Does it has anything to do with threads? I tried to put the seekToTime
call in a dispatch queue, it does't help either.
I have found the solution.
If I use seekToTime
to do the scrubbing, it's pretty slow. What I should use is a method called stepByCount
from AVPlayerItem
.