Post

Replies

Boosts

Views

Activity

AVPlayer KVO crashes at replaceCurrentItem on iOS 16.1
Call function replaceCurrentPlayerItem of AVPlayer while running in the background and then throw an exception. It seems to be not limited to currentItem.hasEnabledAudio. We saw similar exceptions for these members: currentItem.hasEnabledVideo currentItem.liveUpdateInterval currentItem.duration currentItem.status currentItem.seekableTimeRangesLastModifiedTime Fatal Exception: NSInternalInconsistencyException Cannot remove an observer <NSKeyValueObservance 0x282f90900> for the key path "currentItem.liveUpdateInterval" from <AVPlayer 0x2823d2590>, 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. Expected behavior No crash
4
1
2.1k
Nov ’22