예제 #1
0
        // Create video source object
        public IVideoSource CreateVideoSource(object config)
        {
            AxisConfiguration cfg = (AxisConfiguration)config;

            if (cfg != null)
            {
                Axis206 source = new Axis206();

                source.StreamType    = cfg.stremType;
                source.VideoSource   = cfg.source;
                source.Login         = cfg.login;
                source.Password      = cfg.password;
                source.Resolution    = cfg.resolution;
                source.FrameInterval = cfg.frameInterval;

                return((IVideoSource)source);
            }
            return(null);
        }
예제 #2
0
        // Create video source object
        public IVideoSource CreateVideoSource(object config)
        {
            AxisConfiguration cfg = (AxisConfiguration) config;

            if (cfg != null)
            {
                Axis206 source = new Axis206();

                source.StreamType	= cfg.stremType;
                source.VideoSource	= cfg.source;
                source.Login		= cfg.login;
                source.Password		= cfg.password;
                source.Resolution	= cfg.resolution;
                source.FrameInterval = cfg.frameInterval;

                return (IVideoSource) source;
            }
            return null;
        }