     weak var delegate: PlayerViewDelegate? {
         didSet {
             /// 做了一个代理传递的效果http://blog.csdn.net/feng2qing/article/details/51489548?locationNum=1&fps=1, 本界面不需要实现代理方法, 直接传递给上层控制器
-            (controlView as! STPlayerControlView).delegate = delegate
+            (controlView!).delegate = delegate
         }
     }
     /// 播放器状态

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

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