0

I have 4 views where I play 1-2 second videos in a loop, using AVPlayerItemDidPlayToEndTimeNotification like this:

- (void)playerItemDidReachEnd:(NSNotification *)notification
{
    AVPlayerItem *playerItem = [notification object];
    [playerItem seekToTime:kCMTimeZero];
}

When I looked at Activity Monitor instrument, I noticed a continuous 10 kB/s memory leak. If I comment the seekToTime call, the leak is gone.

Any ideas?

aelveon
  • 132
  • 1
  • 1
  • 9

0 Answers0