// Create video source object
        public IVideoSource CreateVideoSource(object config)
        {
            SANYOCamera source = new SANYOCamera();

            return((IVideoSource)source);


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

            /*SANYOConfiguration cfg = (SANYOConfiguration) config;

            if (cfg != null)
            {
                SANYOCamera source = new SANYOCamera();

                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 (IVideoSource) source;
            }
            return null;*/
        }