private void OpenJpegUrlToolStripMenuItem_Click(object sender, EventArgs e) { var form = new UrlForm(); form.Description = "Enter URL of an updating JPEG from a web camera:"; form.Urls = new[] { "http://195.243.185.195/axis-cgi/jpg/image.cgi?camera=1" }; if (form.ShowDialog(this) == DialogResult.OK) { var jpegSource = new JPEGStream(form.Url); OpenVideoSource(jpegSource); } }
private void OpenMJpegUrlToolStripMenuItem_Click(object sender, EventArgs e) { var form = new UrlForm(); form.Description = "Enter URL of an MJPEG video stream:"; form.Urls = new[] { "http://195.243.185.195/axis-cgi/mjpg/video.cgi?camera=4", "http://195.243.185.195/axis-cgi/mjpg/video.cgi?camera=3" }; if (form.ShowDialog(this) == DialogResult.OK) { var mjpegSource = new MJPEGStream(form.Url); OpenVideoSource(mjpegSource); } }