         }
     }
 
-    private func handleViewBoundsChanged() {
-        guard let playerLayer = playerLayer else { return }
-        playerLayer.frame = view.bounds
-        setupMaxResolution(for: playerLayer.frame.size)
-    }
 
     private func handlePlayerRateChanged() {
         if player?.rate == 0 && playerStatus != .unknown && state != .idle {

        if let timeObserver = timeObserver {
            player.removeTimeObserver(timeObserver)
        }
        view.removeObserver(self, forKeyPath: "bounds")
        loopObserver = nil
    }

    override open func destroy() {

    #endif

    @objc internal func addObservers() {
        self.observers += [
            view.observe(\UIView.bounds, options: .new, changeHandler: maximizePlayer),
        ]

        player?.addObserver(self, forKeyPath: "currentItem.status",
                            options: .new, context: &kvoStatusDidChangeContext)
