ShelbyTV / Shelby-2.0-iOS

The code in this repoistory will eventually be presented to the end-user. The other repository, Shelby-GT-iOS contains all the code I've developed between April - August 2012, which will slowly be siphoned into this repository as we continue development on 2.0 and beyond.
1 stars 0 forks source link

Fix NSInternalInconsistencyException in - [SPVideoPlayer removePlayerItemObservers:], line 229 #434

Open Shelby-ios opened 10 years ago

Shelby-ios commented 10 years ago

Version: 2.0 (b24) | tv.shelby.shelbytventerprise

Stacktrace

SPVideoPlayer;removePlayerItemObservers:;SPVideoPlayer.m;229
SPVideoPlayer;observeValueForKeyPath:ofObject:change:context:;SPVideoPlayer.m;447
SPVideoPlayer;setupPlayerForURL:;SPVideoPlayer.m;127
SPVideoPlayer;prepareForStreamingPlayback;SPVideoPlayer.m;293
SPVideoExtractor;URLForVideo:usingBlock:highPriority:;SPVideoExtractor.m;90
SPVideoPlayer;prepareForStreamingPlayback;SPVideoPlayer.m;281
ShelbyAirPlayController;playEntity:;ShelbyAirPlayController.m;161

Reason

*\ Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Cannot remove an observer <AVPlayerPeriodicCaller 0x2093d600> for the key path "currentItem.status" from <AVPlayer 0x20af39a0>, most likely because the value for the key "currentItem" has changed without an appropriate KVO notification being sent. Check the KVO-compliance of the AVPlayer class.'

Link to HockeyApp