This is somewhat related to Looping a video with AVFoundation AVPlayer but that question is answered. What I'm trying to achieve is seamless looping using an AVPlayer. There is a noticeable stutter between loops using h264-encoded videos* that has gotten worse for some reason with the update to iOS 5. Could this have something to do with the way the videos are encoded rather than the AVPlayer? The looping is triggered by a playerItemDidReachEnd notification as described in the link above.
Thanks.
* here's the ffmpeg command we're using to encode the videos, if that helps:
ffmpeg -i -y -sameq -vcodec libx264 -vpre hq -crf 20 -an
(yes, the files don't have sound (yet) so the -an is intentional.)