コード例 #1
0
        // 创建视频源对象
        public IVideoSource CreateVideoSource(object config)
        {
            EasyNConfiguration cfg = (EasyNConfiguration)config;

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

                source.StreamType = cfg.stremType;
                source.VideoSource = cfg.source;
                source.Login = cfg.login;
                source.Password = cfg.password;
                source.Rate = cfg.rate;
                source.FrameInterval = cfg.frameInterval;

                return (IVideoSource)source;
            }
            return null;
        }
コード例 #2
0
        // 创建视频源对象
        public IVideoSource CreateVideoSource(object config)
        {
            EasyNConfiguration cfg = (EasyNConfiguration)config;

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

                source.StreamType    = cfg.stremType;
                source.VideoSource   = cfg.source;
                source.Login         = cfg.login;
                source.Password      = cfg.password;
                source.Rate          = cfg.rate;
                source.FrameInterval = cfg.frameInterval;

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