Skip to content

Instantly share code, notes, and snippets.

@ukudala
ukudala / gist:ac529a1b183e4873ed6f
Created March 3, 2016 21:49
Smooth AVPlayer scrolling performance fix
> DESCRIPTION OF PROBLEM
> In Photos.app, Videos.app, and iMovie.app, local videos can be rewound using the video scrubber. Scrubbing backwards in a video is extremely smooth and satisfying.
>
> Using AVPlayer in our app, ScoreBreak, we cannot achieve the same smoothness when scrubbing a video backwards. There are reports on stack overflow which indicate that this is due to the codec used by AVPlayer.
>
> We would like to deliver the same beautiful user interaction with videos as offered by your system apps. Can you instruct us on how to achieve this while using AVFoundation?
>
> STEPS TO REPRODUCE
> • Create test application which utilizes AVPlayer for local video file playback
> • Scrub backwards using AVPlayer controller