Skip to content

Instantly share code, notes, and snippets.

@tolgahan-arikan
tolgahan-arikan / gist:fee2a39883f5630ac0c193efee5130a6
Created November 17, 2020 18:18 — forked from ukudala/gist:ac529a1b183e4873ed6f
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