// Create video source object public VsICoreProvider CreateVideoSource(object config) { StreamConfiguration cfg = (StreamConfiguration) config; if (cfg != null) { VideoStream source = new VideoStream(); source.VideoSource = cfg.source; return (VsICoreProvider) source; } return null; }
// Constructor public Grabber(VideoStream parent) { this.parent = parent; }