ZFPlayer icon indicating copy to clipboard operation
ZFPlayer copied to clipboard

ZFAVPlayerManager的播放完成回调playerDidToEnd回调用多次

Open ZhenGQ1030 opened this issue 4 years ago • 3 comments

_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会连续调用两次

ZhenGQ1030 avatar May 13 '20 07:05 ZhenGQ1030

同样的问题

hucool avatar Sep 01 '20 11:09 hucool

同样的问题,不知道为什么会这样

f2yu avatar Aug 30 '21 03:08 f2yu

同样的问题,不知道为什么会这样 有解决吗

miaozhang9 avatar Mar 21 '22 11:03 miaozhang9