Exemplo n.º 1
0
        // Create video source object
        public IVideoSource CreateVideoSource(object config)
        {
            PanasonicConfiguration cfg = (PanasonicConfiguration)config;

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

                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((IVideoSource)source);
            }
            return(null);
        }
Exemplo n.º 2
0
        // Create video source object
        public IVideoSource CreateVideoSource(object config)
        {
            PanasonicConfiguration cfg = (PanasonicConfiguration) config;

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

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