                 if self.session.canSetSessionPreset(self.resolution.foundationPreset()) {
                     self.session.sessionPreset = self.resolution.foundationPreset()
                 }
-                
-                self.configureFrameRate()
  
                 if self.capturesHighResolutionImages && self.photoOutput.isHighResolutionCaptureEnabled {
                     self.photoOutput.isHighResolutionCaptureEnabled = true

                }
                
                self.session.commitConfiguration()
                completion(CameraSetupResult.videoSuccess)
                break
            case .denied:

            if oldOutput == self.videoDataOutput || oldOutput == self.photoOutput || oldOutput == self.metadataOutput || oldOutput == self.videoFileOutput  {
                self.session.removeOutput(oldOutput)
            }
            if let dataOutput = oldOutput as? AVCaptureVideoDataOutput {
                self.session.removeOutput(dataOutput)
            }
        }
    }
    
