       self?.controlViewAnimate(false)
     })
     
-    DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + TimeInterval(3), execute: hideWorkItem!)
+    DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + autoHideSecond, execute: hideWorkItem!)
   }
 
   deinit {

    backButton.tag = ButtonType.back.rawValue
    fullScreenButton.tag = ButtonType.fullscreen.rawValue
    replayButton.tag = ButtonType.replay.rawValue
    
    fullScreenButtonWidthConst.constant = 0
    
    autoHideControlView()
  }

    case fullscreen = 103
    case replay     = 104
  }
  
  weak var delegate: ACPlayerControlViewDelegate?
  var totalDuration: TimeInterval = 0
  /// 自动隐藏的时间，为0时不隐藏
  var autoHideSecond: TimeInterval = 3
  /// 是否显示全屏按钮
  var isShowFullScreenButton = true {
    didSet{
      fullScreenButtonWidthConst.constant = isShowFullScreenButton ? 50 : 0
    }
  }

  @IBOutlet private weak var progressSlider: UISlider!
  @IBOutlet private weak var fastForwardView: UIView!
