         "mp4": "video/mp4",
         "m3u8": "application/x-mpegurl",
     ]
-
-    private var kvoBufferingContext = 0
 
     private(set) var seekToTimeWhenReadyToPlay: TimeInterval?
     


    private func removeObservers() {
        guard let player = player, player.observationInfo != nil else { return }
        player.removeObserver(self, forKeyPath: "currentItem.playbackLikelyToKeepUp")
        player.removeObserver(self, forKeyPath: "currentItem.playbackBufferEmpty")
        if let timeObserver = timeObserver {
            player.removeTimeObserver(timeObserver)
        }


    open override func mute(_ enabled: Bool) {
        player?.volume = enabled ? .zero : 1.0
    }

    private func updateState(_ newState: PlaybackState) {
