예제 #1
0
        public ICapturer GetCapturer(CapturerType type)
        {
            switch(type) {
            case CapturerType.Fake:
                return new FakeCapturer();

            case CapturerType.Live:
                return new GstCameraCapturer("test.avi");

            default:
                return new FakeCapturer();
            }
        }
예제 #2
0
        public ICapturer GetCapturer(CapturerType type)
        {
            switch (type)
            {
            case CapturerType.Fake:
                return(new FakeCapturer());

            case CapturerType.Live:
                return(new GstCameraCapturer("test.avi"));

            default:
                return(new FakeCapturer());
            }
        }