     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
         }
     }
     /// 播放器状态

    /// 是否正在拖拽
    fileprivate var isDragging: Bool? = false
    /// 控制层View
    fileprivate var controlView: UIView?
    fileprivate var playerModel: STPlayerModel! {
        didSet {
            if ((playerModel?.seekTime) != nil) {

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