         self.navigationController?.delegate = self
         
         self.videoDataOutputQueue = DispatchQueue(label: "VideoDataOutputQueue")
-        self.captureSession.sessionPreset = AVCaptureSessionPresetHigh
         
         updateCameraSelection()
         setupVideoProcessing()

    
    override func viewDidDisappear(_ animated: Bool) {
        self.captureSession.stopRunning()
    }
    
    

    }
    
    func setupCameraPreview() {
        self.captureSession.sessionPreset = AVCaptureSessionPresetPhoto
        self.previewLayer = AVCaptureVideoPreviewLayer(session: self.captureSession)
        self.previewLayer?.frame = view.layer.frame
        self.previewLayer?.videoGravity = AVLayerVideoGravityResizeAspectFill
        self.previewHolder.layer.masksToBounds = true
        self.previewHolder.layer.addSublayer(self.previewLayer!)
        self.captureSession.startRunning()
    }
    
