Exemple #1
0
        private int SwitchCamera()
        {
            int cameraId = 1;//NextCameraId();

            _camera = Camera.Open(cameraId);
            _currentCameraFacing = _cameraInfo.GetCameraFacing(cameraId);

            return(cameraId);
        }
Exemple #2
0
        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); }
        }