// 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); } }
// Open URL private void openURLFileItem_Click(object sender, System.EventArgs e) { URLForm form = new URLForm( ); form.Description = "Enter URL of an updating JPEG from a web camera:"; form.URLs = new string[] { "http://61.220.38.10/axis-cgi/jpg/image.cgi?camera=1", "http://212.98.46.120/axis-cgi/jpg/image.cgi?resolution=352x240", "http://webcam.mmhk.cz/axis-cgi/jpg/image.cgi?resolution=320x240", "http://195.243.185.195/axis-cgi/jpg/image.cgi?camera=1" }; if (form.ShowDialog(this) == DialogResult.OK) { // create video source JPEGStream jpegSource = new JPEGStream( ); jpegSource.VideoSource = form.URL; // open it OpenVideoSource(jpegSource); } }