// Create video source object public VsICoreProvider CreateVideoSource(object config) { BoschConfiguration cfg = (BoschConfiguration)config; if (cfg != null) { BoschCamera source = new BoschCamera(); source.StreamType = cfg.stremType; source.VideoSource = cfg.source; source.Login = cfg.login; source.Password = cfg.password; source.Resolution = cfg.resolution; source.Quality = cfg.quality; source.FrameInterval = cfg.frameInterval; return((VsICoreProvider)source); } return(null); }
// Create video source object public VsICoreProvider CreateVideoSource(object config) { BoschConfiguration cfg = (BoschConfiguration) config; if (cfg != null) { BoschCamera source = new BoschCamera(); source.StreamType = cfg.stremType; source.VideoSource = cfg.source; source.Login = cfg.login; source.Password = cfg.password; source.Resolution = cfg.resolution; source.Quality = cfg.quality; source.FrameInterval = cfg.frameInterval; return (VsICoreProvider) source; } return null; }