Ejemplo n.º 1
0
        // Create video source object
        public IVideoSource CreateVideoSource(object config)
        {
            StardotConfiguration cfg = (StardotConfiguration)config;

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

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

                return((IVideoSource)source);
            }
            return(null);
        }
Ejemplo n.º 2
0
        // Create video source object
        public IVideoSource CreateVideoSource(object config)
        {
            StardotConfiguration cfg = (StardotConfiguration) config;

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

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

                return (IVideoSource) source;
            }
            return null;
        }