コード例 #1
0
        // Create video source object
        public VsICoreProvider CreateVideoSource(object config)
        {
            AxisConfiguration cfg = (AxisConfiguration)config;

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

                source.StreamType    = cfg.stremType;
                source.VideoSource   = cfg.source;
                source.Login         = cfg.login;
                source.Password      = cfg.password;
                source.Camera        = cfg.camera;
                source.FrameInterval = cfg.frameInterval;

                return((VsICoreProvider)source);
            }
            return(null);
        }
コード例 #2
0
ファイル: SourceDescriptions.cs プロジェクト: tdhieu/openvss
		// Create video source object
		public VsICoreProvider CreateVideoSource(object config)
		{
			AxisConfiguration cfg = (AxisConfiguration) config;
			
			if (cfg != null)
			{
				Axis2460 source = new Axis2460();

				source.StreamType	= cfg.stremType;
				source.VideoSource	= cfg.source;                
				source.Login		= cfg.login;
				source.Password		= cfg.password;
				source.Camera		= cfg.camera;
				source.FrameInterval = cfg.frameInterval;

				return (VsICoreProvider) source;
			}
			return null;
		}