     
     var session: AVCaptureSession?
     var device: AVCaptureDevice?
+    var audioDevice: AVCaptureDevice?
     var videoInput: AVCaptureDeviceInput?
+    var audioInput: AVCaptureDeviceInput?
     var videoOutput: AVCaptureMovieFileOutput?
     var focusView: UIView?
     

                self.device = device
            }
        }
        
        do {
            
            if let session = session {
                
                videoInput = try AVCaptureDeviceInput(device: device)
                
                session.addInput(videoInput)
                
                videoOutput = AVCaptureMovieFileOutput()
                let totalSeconds = 60.0 //Total Seconds of capture time

                        videoInput = try AVCaptureDeviceInput(device: device)
                        session.addInput(videoInput)
                        
                    }
                }

                for device in AVCaptureDevice.devices(withMediaType: AVMediaTypeAudio) {
                    if let device = device as? AVCaptureDevice {
                        audioInput = try AVCaptureDeviceInput(device: device)
                        session.addInput(audioInput)
                    }
                }
                
