AVPlayerItem sends false AVPlayerItemDidPlayToEndTimeNotification

Hello, I'm trying to replay (seek to zero and play inside the completion) an AVPlayer programmatically, immediately when it ends. Sometimes the seek operation fails and I get AVPlayerItemDidPlayToEndTimeNotification notification, even though the AVPlayer clearly didn't end, it just began playing. This leads to issues because the whole replay functionality is based on this notification, so if I get a false AVPlayerItemDidPlayToEndTimeNotification it causes a loop of replays, which results in black frame issues.

Any idea why this happens? Thanks

If AVPlayerItemDidPlayToEndTimeNotification is not behaving as you expect, please file a bug report using the feedback assistant.

AVPlayerItem sends false AVPlayerItemDidPlayToEndTimeNotification
 
 
Q