// 创建视频源对象 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; }
// 创建视频源对象 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); }