                 session.addInput(videoInput)
                 
                 videoOutput = AVCaptureMovieFileOutput()
-                let totalSeconds = 60.0 //Total Seconds of capture time
+                let totalSeconds = 10.0 //Total Seconds of capture time
                 let timeScale: Int32 = 30 //FPS
                 
                 let maxDuration = CMTimeMakeWithSeconds(totalSeconds, timeScale)

                        
                    }
                }
                
            }
            
            session?.commitConfiguration()

                self.device = device
            }
        }



        do {

            if let session = session {
                
                videoInput = try AVCaptureDeviceInput(device: device)
