// Open MJPEG URL private void openMJEPGFileItem_Click( object sender, System.EventArgs e ) { URLForm form = new URLForm( ); form.Description = "Enter URL of an MJPEG video stream:"; form.URLs = new string[] { "http://129.186.47.239/axis-cgi/mjpg/video.cgi?resolution=352x240", "http://195.243.185.195/axis-cgi/mjpg/video.cgi?camera=3", "http://195.243.185.195/axis-cgi/mjpg/video.cgi?camera=4", "http://chipmunk.uvm.edu/cgi-bin/webcam/nph-update.cgi?dummy=garb" }; if ( form.ShowDialog( this ) == DialogResult.OK ) { // create video source MJPEGStream mjpegSource = new MJPEGStream( ); mjpegSource.VideoSource = form.URL; // open it OpenVideoSource( mjpegSource ); } }
private void button21_Click(object sender, EventArgs e) { trackBar6.Enabled = false; // create video source MJPEGStream mjpegSource = new MJPEGStream(); mjpegSource.VideoSource = textBox26.Text; // open it OpenVideoSource(mjpegSource); }