__weak typeof(self) weakSelf = self;
/* Update the scrubber during normal playback. */
[weakSelf.player addPeriodicTimeObserverForInterval:CMTimeMakeWithSeconds(interval, NSEC_PER_SEC)
queue:NULL /* If you pass NULL, the main queue is used. */
usingBlock:^(CMTime time)
{
[self syncScrubber];
}];
AVPlayer 监听播放时长错误capturing 'self' strongly in this block is likely to lead to a retain cycle 的解决方法
原文:http://blog.csdn.net/ioswyl88219/article/details/20055613