 import Foundation
 
 open class MediaControl: UICorePlugin, UIGestureRecognizerDelegate {
-    public var gesture: UITapGestureRecognizer?
+    public var tapGesture: UITapGestureRecognizer?
+    public var doubleTapGesture: UITapGestureRecognizer?
 
     var mediaControlView: MediaControlView = .fromNib()
 

        hideAndStopTimer()
    }

    override open func render() {
        view.addSubview(mediaControlView)
        mediaControlView.bindFrameToSuperviewBounds()

        let gesture = UITapGestureRecognizer(target: self, action: #selector(tapped))
        gesture.delegate = self
        view.addGestureRecognizer(gesture)
        self.gesture = gesture
        
        view.isHidden = true
        view.backgroundColor = UIColor.clear

        }

        showIfAlwaysVisible()
        view.bindFrameToSuperviewBounds()
    }
    
    private func setupGestures() {
        let tapGesture = UITapGestureRecognizer(target: self, action: #selector(tapped))
        tapGesture.delegate = self
        view.addGestureRecognizer(tapGesture)
        self.tapGesture = tapGesture
        
        let doubleTapGesture = UITapGestureRecognizer(target: self, action: #selector(didDoubleTap))
        doubleTapGesture.numberOfTapsRequired = 2
        tapGesture.require(toFail: doubleTapGesture)
        self.doubleTapGesture = doubleTapGesture
        
        view.addGestureRecognizer(doubleTapGesture)
    }

    func renderPlugins(_ plugins: [MediaControlPlugin]) {
