Beispiel #1
0
        public ICameraRecorder CreateCameraRecorder(XElement recorderElement)
        {
            ICameraRecorder camRecorder = null;
            switch (recorderElement.Name.LocalName)
            {
                case CygGstCameraRecorder.XName:
                    camRecorder = new CygGstCameraRecorder(recorderElement);
                    break;
                default:
                    throw new ArgumentOutOfRangeException("No such recorder type: " + recorderElement.Name.LocalName);
            }

            return camRecorder;
        }
Beispiel #2
0
        public ICameraRecorder CreateCameraRecorder(XElement recorderElement)
        {
            ICameraRecorder camRecorder = null;

            switch (recorderElement.Name.LocalName)
            {
            case CygGstCameraRecorder.XName:
                camRecorder = new CygGstCameraRecorder(recorderElement);
                break;

            default:
                throw new ArgumentOutOfRangeException("No such recorder type: " + recorderElement.Name.LocalName);
            }

            return(camRecorder);
        }