         oldValue.removeObserver(self, forKeyPath: #keyPath(AVPlayer.currentItem.loadedTimeRanges))
         oldValue.removeObserver(self, forKeyPath: #keyPath(AVPlayer.currentItem.duration))
         oldValue.removeObserver(self, forKeyPath: #keyPath(AVPlayer.currentItem.currentMediaSelection))
+        oldValue.removeObserver(self, forKeyPath: #keyPath(AVPlayer.currentItem))
     }
     
     public override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey : Any]?, context: UnsafeMutableRawPointer?) {

                self.metadataBecameAvailable()
            } else if keyPath == #keyPath(AVPlayer.currentItem.currentMediaSelection) {
                self.updateMediaSelection()
            } else {
                super.observeValue(forKeyPath: keyPath, of: object, change: change, context: context)
            }

        didSet {
            guard let player = player else { return }
            
            if isPlaying && !isPlayingExternally {
                player.rate = playbackSpeed.rawValue
                player.seek(to: player.currentTime()) // Helps the AV sync when speeds change with the TimeDomain algorithm enabled
            }

            updatePlaybackSpeedState()
        }
    }
