     }
     
     
-    
-    func longPress(_ recognizer: UILongPressGestureRecognizer){
+    func doubleClickPlay(){
+        print("double click play")
+                    toggleHUDState()
+    }
+    
+    
+    
+    func longPress(_ recognizer: UIGestureRecognizer){
     
         
         if(recognizer.state == .began){
-            print("LONG PRESS PLAY")
+            print("long press play")
             toggleHUDState()
             
             

            
            // restore the original location of the main image

            if(getAsset().location != nil){
                // NILPOINTER BY MAINFRAME
                UIView.animate(withDuration: 0.5, animations: { () -> Void in
                    self.imageView.frame = self.mainImageFrameBackup!
                    self.imageView.layer.shadowOffset = CGSize(width:15, height:15);
                    self.imageView.layer.shadowRadius = 0;
                    self.imageView.layer.shadowOpacity = 0.0;

        addDynamics()
        
        
        // doubletap recognizer
        let dtapr = UITapGestureRecognizer(target: self, action: #selector(doubleClickPlay) )
        dtapr.allowedPressTypes = [ NSNumber(value: UIPressType.playPause.rawValue)]
        dtapr.numberOfTapsRequired = 2
        
        view.addGestureRecognizer(dtapr)
        
        
        // Register for long presses
        // to switch HUD modes: EXIF and MAP
        let longRg = UILongPressGestureRecognizer(target: self, action: #selector(longPress(_:)) )
        longRg.allowedPressTypes = [NSNumber(value: UIPressType.playPause.rawValue)];
        
        

        

        
        view.addGestureRecognizer(longRg)
        
