Beispiel #1
0
        // Create video source object
        public IVideoSource CreateVideoSource(object config)
        {
            DLinkConfiguration cfg = (DLinkConfiguration) config;

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

                source.VideoSource	= cfg.source;
                source.Login		= cfg.login;
                source.Password		= cfg.password;
                source.FrameInterval = cfg.frameInterval;

                return (IVideoSource) source;
            }
            return null;
        }
        // Create video source object
        public IVideoSource CreateVideoSource(object config)
        {
            DLinkConfiguration cfg = (DLinkConfiguration)config;

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

                source.VideoSource   = cfg.source;
                source.Login         = cfg.login;
                source.Password      = cfg.password;
                source.FrameInterval = cfg.frameInterval;

                return((IVideoSource)source);
            }
            return(null);
        }