// Create video source object public IVideoSource CreateVideoSource(object config) { StardotConfiguration cfg = (StardotConfiguration)config; if (cfg != null) { StardotNetCam source = new StardotNetCam(); source.VideoSource = cfg.source; source.Login = cfg.login; source.Password = cfg.password; source.FrameInterval = cfg.frameInterval; return((IVideoSource)source); } return(null); }
// Create video source object public IVideoSource CreateVideoSource(object config) { StardotConfiguration cfg = (StardotConfiguration) config; if (cfg != null) { StardotNetCam source = new StardotNetCam(); source.VideoSource = cfg.source; source.Login = cfg.login; source.Password = cfg.password; source.FrameInterval = cfg.frameInterval; return (IVideoSource) source; } return null; }