I'm pretty new to observers and Swift/ObjC, and I'm trying to monitor AVPlayer status using one as said in Apple's documentation, but everything I get is a "message was received but not handled" error message when I try to add the observer.
gs_mediaObjAdv=AVPlayer(URL: NSURL(string: mediaURL));
gs_mediaObjAdv.addObserver(self, forKeyPath: "status", options:NSKeyValueObservingOptions.New, context:nil);
If I unregister the observer, the error disappear but if I add a println("test") inside the observeValueForKeyPath function, nothing happens.
Any idea in how can I monitor the status in a simple way?