got AVPlayerItemFailedToPlayToEndTimeNotification after play 10s

Hi

I have a video streaming app using HLS+FairPlay

set notification after my player init

[[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(playerItemFailedToPlayToEndTime:)
                                                 name:AVPlayerItemFailedToPlayToEndTimeNotification
                                               object:playerItem];


sometimes will trigger after player start 10s.

If I reboot device ,the problem is solve.

But kill app or re-install app are both not work.


So I think this is OS level issue.

Also this problem is gerneral issue happen almost all device from iOS8 to iOS 10


how could I prevent this happen.

This is my code to start play

[player seekToTime:CMTimeMakeWithSeconds(time, NSEC_PER_SEC) toleranceBefore:kCMTimeZero toleranceAfter:kCMTimeZero completionHandler:^(BOOL bFinished) {
            if (bFinished) {
               [weakSelf.player play];
                
                if (completionHandler) {
                    completionHandler(bFinished);
                }
            }else{
                //trigger interupt
            }
        }];