private int SwitchCamera() { int cameraId = 1;//NextCameraId(); _camera = Camera.Open(cameraId); _currentCameraFacing = _cameraInfo.GetCameraFacing(cameraId); return(cameraId); }
private int SwitchCamera() { try { int cameraId = int.Parse(MainValues.front_back);//NextCameraId(); _camera = Camera.Open(cameraId); _currentCameraFacing = _cameraInfo.GetCameraFacing(cameraId); return(cameraId); } catch (Exception) { return(5); } }