     func playerControlView(controlView: UIView?, playerModel: STPlayerModel) {
         if (controlView == nil) {
             self.controlView = STPlayerControlView()
-            (self.controlView as! STPlayerControlView).delegateControl = self
+            (self.controlView!).delegateControl = self
             addSubview(self.controlView!)
             self.controlView?.snp.makeConstraints({ (make) in
                 make.top.leading.trailing.bottom.equalTo(self)
             })
         } else {
-            self.controlView = controlView
+            self.controlView = controlView as? STPlayerControlView
         }
         self.playerModel = playerModel
     }

        controlView?.playerBottomShrinkPlay()
    }
    
    
    /// 解锁屏幕锁定方向
    fileprivate func unLockTheScreen() {
        STBrightnessView.shared.isLockScreen = false

    func failButtonClick() {
        
    }
    func progressSliderTouchBegin() {
        
    }
    func progressSliderValueChange() {
        
    }
    func progressSliderTouchEnded() {
        
    }
    func tapSliderAction() {
        
    }
}

// MARK: - UIGestureRecognizerDelegate
