我正在使用AVPlayer播放来自网络的轨道。在我的播放列表中总是有几首轨道。因此,为了定义当前轨道到达终点时将采取的操作,我使用KVO机制并为发布的AVPlayerItemDidPlayToEndTimeNotification注册一个观察者。if(_player.currentItem.status==AVPlayerItemStatusReadyToPlay){[selfplay];[NSNotificationCenterdefaultCenter]addObserver:selfselector:@selector(itemReachedEnd:)name:AVPlayerI