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

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

                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((VsICoreProvider)source);
            }
            return(null);
        }
Ejemplo n.º 2
0
		// Create video source object
		public VsICoreProvider CreateVideoSource(object config)
		{
			AxisConfiguration cfg = (AxisConfiguration) config;
			
			if (cfg != null)
			{
				Axis2110 source = new Axis2110();

				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 (VsICoreProvider) source;
			}
			return null;
		}