Post not yet marked as solved
Post marked as unsolved with 4 replies, 1,994 views
When a video reaches to the end, "AVPlayerItemDidPlayToEndTimeNotification" doesn't not fire. Instead, sometimes I saw "AVPlayerItemPlaybackStalledNotification" is triggered when the video playback reaches the end. However, it works correctly on iOS 12 and below.[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(playerItemDidReachEnd:) name:AVPlayerItemDidPlayToEndTimeNotification object:avPlayerItem];.....- (void)playerItemDidReachEnd:(NSNotification *)notification { // This handler is never been called on iOS 13 Beta and tvOS 13 Beta }We rely on reading this observer notifcation to signal the video has been reached to the end. Without the correct notification, the video will be handing to the end.