// Create video source object public IVideoSource CreateVideoSource(object config) { PixordConfiguration cfg = (PixordConfiguration) config; if (cfg != null) { PixordCamera source = new PixordCamera(); 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 (IVideoSource) source; } return null; }
// Create video source object public IVideoSource CreateVideoSource(object config) { PixordConfiguration cfg = (PixordConfiguration)config; if (cfg != null) { PixordCamera source = new PixordCamera(); 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((IVideoSource)source); } return(null); }