我在我的项目中使用AVPlayer来播放视频流。我的项目是用Swift语言编写的。如何检测到AVPlayer播放了错误的链接?我用过这个:player.addObserver(self,forKeyPath:"status",options:NSKeyValueObservingOptions(),context:nil)overridefuncobserveValueForKeyPath(keyPath:String?,ofObjectobject:AnyObject?,change:[String:AnyObject]?,context:UnsafeMutablePointer){