ZFPlayer
ZFPlayer copied to clipboard
ZFAVPlayerManager的播放完成回调playerDidToEnd回调用多次
_itemEndObserver = [[NSNotificationCenter defaultCenter] addObserverForName:AVPlayerItemDidPlayToEndTimeNotification object:self.playerItem queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification * _Nonnull note) {
@strongify(self)
if (!self) return;
NSLog(@"%@",note.object);
self.playState = ZFPlayerPlayStatePlayStopped;
if (self.playerDidToEnd) self.playerDidToEnd(self);
}];
这个通知的block会连续调用两次
同样的问题
同样的问题,不知道为什么会这样
同样的问题,不知道为什么会这样 有解决吗