How to improve search performance when using avplayer

I am using AVPlayer

to create a video player, but the method seekToTime

is quite slow. I'm impressed with the performance search for Apple's Photos app. Does anyone know how Apple managed to do such a quick search?

Is it related to streams? I tried to put the call seekToTime

in the dispatch queue, that doesn't help either.

+3


source to share


1 answer


I found a solution.



If I use it seekToTime

for cleaning, it's pretty slow. I have to use the method stepByCount

from AVPlayerItem

.

0


source







All Articles