Posts

Post not yet marked as solved
4 Replies
2.0k 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.
Posted Last updated
.