     private lazy var leftSwipeGestureRecognizer : UISwipeGestureRecognizer = {
         let gesture = UISwipeGestureRecognizer()
         gesture.direction = .left
+        gesture.delegate = self
         gesture.addAction { [weak self] _ in
             self?.controls?.nextButtonClicked()
         }

    private lazy var rightSwipeGestureRecognizer : UISwipeGestureRecognizer = {
        let gesture = UISwipeGestureRecognizer()
        gesture.direction = .right
        gesture.addAction { [weak self] _ in
            self?.controls?.previousButtonClicked()
        }

        NotificationCenter.default.post(name: Notification.Name.init("TestPlayerStatusDidChangedToReadyState"), object: nil)
    }
}

extension VideoPlayer: UIGestureRecognizerDelegate {
    func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldReceive touch: UITouch) -> Bool {
        if let bottomBarframe = controlsBottomBarFrame, bottomBarframe.contains(touch.location(in: playerView)) {
            return false
        }
        
        return true
    }
}
