Exemple #1
0
        // Get configuration object
        public object GetConfiguration()
        {
            StreamConfiguration config = new StreamConfiguration();

            config.source = urlBox.Text;

            return((object)config);
        }
        // Save configuration
        public void SaveConfiguration(XmlTextWriter writer, object config)
        {
            StreamConfiguration cfg = (StreamConfiguration)config;

            if (cfg != null)
            {
                writer.WriteAttributeString("source", cfg.source);
            }
        }
Exemple #3
0
        // Set configuration
        public void SetConfiguration(object config)
        {
            StreamConfiguration cfg = (StreamConfiguration)config;

            if (cfg != null)
            {
                urlBox.Text = cfg.source;
            }
        }
        // Load configuration
        public object LoadConfiguration(XmlTextReader reader)
        {
            StreamConfiguration config = new StreamConfiguration();

            try
            {
                config.source = reader.GetAttribute("source");
            }
            catch (Exception)
            {
            }
            return((object)config);
        }
        // Load configuration
        public object LoadConfiguration(Hashtable reader)
        {
            StreamConfiguration config = new StreamConfiguration();

            try
            {
                config.source = (string)reader["source"];
            }
            catch (Exception)
            {
            }
            return((object)config);
        }
        // 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);
        }
		// Get configuration object
		public object GetConfiguration()
		{
			StreamConfiguration config = new StreamConfiguration();

			config.source = urlBox.Text;

			return (object) config;
		}
Exemple #8
0
		// Load configuration
		public object LoadConfiguration(XmlTextReader reader)
		{
			StreamConfiguration config = new StreamConfiguration();

			try
			{
				config.source = reader.GetAttribute("source");
			}
			catch (Exception)
			{
			}
			return (object) config;
		}
Exemple #9
0
        // Load configuration
        public object LoadConfiguration(Hashtable reader)
        {
            StreamConfiguration config = new StreamConfiguration();

            try
            {
                config.source = (string)reader["source"];
            }
            catch (Exception)
            {
            }
            return (object)config;
        }