             })
         case .videoWithMic, .videoOnly:
             cameraButton.isSelected = !cameraButton.isSelected
-            cameraButton.setTitle("", for: UIControlState.selected)
+            cameraButton.setTitle("", for: UIControl.State.selected)
     
             cameraButton.backgroundColor = cameraButton.isSelected ? redColor : lightBlue
             if sender.isSelected {

        cameraManager.showErrorBlock = { [weak self] (erTitle: String, erMessage: String) -> Void in
        
            let alertController = UIAlertController(title: erTitle, message: erMessage, preferredStyle: .alert)
            alertController.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.default, handler: { (alertAction) -> Void in  }))
            
            self?.present(alertController, animated: true, completion: nil)
        }

    
    override func viewDidLoad() {
        super.viewDidLoad()
//      cameraManager.shouldRespondToOrientationChanges = false
        cameraManager.shouldEnableExposure = true
        
        cameraManager.shouldFlipFrontCameraImage = false
