How handle streaming error with AVPlayer
问题 I use AVPlayer to stream tracks.I'm trying to handle all errors like network unavailable or stream unaivalable But I find any handler for this kind of error. I've already added a KVO for on the avplayer's status. [self.player addObserver:self forKeyPath:@"status" options:0 context:nil]; But even the stream doesn't exist (example: wrong url), the status switch to AVPlayerStatusReadyToPlay. EDIT Solution was to work with AVPLayerItems and use AVQueuPlayer. The other problem was I reallocated