     
 }
 
-// MARK: - UIButton
+// MARK: - capture
 
 extension CameraViewController {
-
-    internal func handleFlipButton(_ button: UIButton) {
-        NextLevel.sharedInstance.flipCaptureDevicePosition()
-    }
-    
-    internal func handleFlashModeButton(_ button: UIButton) {
-        
-    }
-    
-    internal func handleRecordButton(_ button: UIButton) {
-        
-    }
-    
-    internal func handleDoneButton(_ button: UIButton) {
+    
+    internal func startCapture() {
+        NextLevel.sharedInstance.record()
+    }
+    
+    internal func pauseCapture() {
+        NextLevel.sharedInstance.pause()
+    }
+    
+    internal func endCapture() {
         NextLevel.sharedInstance.session?.mergeClips(usingPreset: AVAssetExportPresetHighestQuality, completionHandler: { (url: URL?, error: Error?) in
             if let _ = url {
                 //

    
}

// MARK: - UIGestureRecognizerDelegate

extension CameraViewController: UIGestureRecognizerDelegate {

    internal func handleLongPressGestureRecognizer(_ gestureRecognizer: UIGestureRecognizer) {
        
    }
    
    internal func handleFocusTapGestureRecognizer(_ gestureRecognizer: UIGestureRecognizer) {

    internal var gestureView: UIView?
    internal var controlDockView: UIView?

    internal var recordButton: UIImageView?
    internal var flipButton: UIButton?
    internal var flashButton: UIButton?
    internal var saveButton: UIButton?

    internal var longPressGestureRecognizer: UILongPressGestureRecognizer?
    internal var focusTapGestureRecognizer: UITapGestureRecognizer?
    internal var zoomPanGestureRecognizer: UIPanGestureRecognizer?
    internal var flipDoubleTapGestureRecognizer: UITapGestureRecognizer?
