     
     public func endVideoRecording() {
         if self.movieFileOutput?.isRecording == true {
-            self.isVideRecording = false
+            self.isVideoRecording = false
             movieFileOutput!.stopRecording()
             disableFlash()
             

                let outputFileName = UUID().uuidString
                let outputFilePath = (NSTemporaryDirectory() as NSString).appendingPathComponent((outputFileName as NSString).appendingPathExtension("mov")!)
                movieFileOutput.startRecording(toOutputFileURL: URL(fileURLWithPath: outputFilePath), recordingDelegate: self)
                self.isVideRecording = true
                self.cameraDelegate?.SwiftyCamDidBeginRecordingVideo()
            }
            else {

    
    override open func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        
        // Set background audio preference
        
        setBackgroundAudioPreference()
        
        sessionQueue.async {
            switch self.setupResult {
